-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure asset keys are relative to the project root
Previously, asset file paths were computed relative to the current working directory, even if we had used `-c` to run Wrangler on a project in a different directory to the current one. Now, assets file paths are computed relative to the "project root", which is either the directory containing the wrangler.toml or the current working directory if there is no config specified.
- Loading branch information
1 parent
7a3d2af
commit 4766c27
Showing
3 changed files
with
55 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
fix: ensure asset keys are relative to the project root | ||
|
||
Previously, asset file paths were computed relative to the current working | ||
directory, even if we had used `-c` to run Wrangler on a project in a different | ||
directory to the current one. | ||
|
||
Now, assets file paths are computed relative to the "project root", which is | ||
either the directory containing the wrangler.toml or the current working directory | ||
if there is no config specified. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters