Skip to content

Commit

Permalink
canonicalized output_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Nov 1, 2024
1 parent ee4a0bb commit 8b1e956
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ use clap::{Parser, Subcommand};
use once_cell::sync::Lazy;
use ssg_parent::Parent;

pub static OUTPUT_DIR: Lazy<Utf8PathBuf> =
Lazy::new(|| Utf8PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../.vercel/output/static"));
pub static OUTPUT_DIR: Lazy<Utf8PathBuf> = Lazy::new(|| {
Utf8PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("../../.vercel/output/static")
.canonicalize_utf8()
.unwrap()
});

#[derive(Debug, Parser)]
struct Cli {
Expand Down

0 comments on commit 8b1e956

Please sign in to comment.