Skip to content

Commit

Permalink
normalize output_dir path without canonicalizing
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Nov 1, 2024
1 parent 8b1e956 commit c33f2a9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ thiserror = "1.0.40"
# TODO less features
tokio = {version = "1.21.0", features = ["full"]}
url = "2.3.1"
path-clean = "1.0.1"
ssg-parent.workspace = true

[features]
Expand Down
9 changes: 5 additions & 4 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ 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")
.canonicalize_utf8()
.unwrap()
path_clean::clean(
Utf8PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../.vercel/output/static"),
)
.try_into()
.unwrap()
});

#[derive(Debug, Parser)]
Expand Down

0 comments on commit c33f2a9

Please sign in to comment.