Skip to content

Commit

Permalink
The pathing to Site assetDirectory needs to be absolute and relative
Browse files Browse the repository at this point in the history
added a join to the helper that is passed into Dev for asset paths.
  • Loading branch information
JacobMGEvans committed Mar 21, 2022
1 parent 3fe320a commit d2bf09b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/wrangler/src/sites.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ export function getAssetPaths(
const baseDirectory = path.resolve(
path.dirname(config.configPath ?? "wrangler.toml")
);
if (assetDirectory) assetDirectory = path.join(baseDirectory, assetDirectory);

return assetDirectory
? {
baseDirectory,
Expand Down

0 comments on commit d2bf09b

Please sign in to comment.