Skip to content

Commit

Permalink
fix: serve --assets in dev + local mode (#1294)
Browse files Browse the repository at this point in the history
A quick bugfix to make sure --assets/config.assets gets served correctly in `dev --local`.
  • Loading branch information
threepointone authored Jun 18, 2022
1 parent 0d6098c commit f6836b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/tasty-ravens-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": patch
---

fix: serve `--assets` in dev + local mode

A quick bugfix to make sure --assets/config.assets gets served correctly in `dev --local`.
2 changes: 1 addition & 1 deletion packages/wrangler/src/dev/dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function DevSession(props: DevSessionProps) {
rules: props.rules,
jsxFragment: props.jsxFragment,
serveAssetsFromWorker: Boolean(
props.assetPaths && !props.isWorkersSite && !props.local
props.assetPaths && !props.isWorkersSite && props.local
),
tsconfig: props.tsconfig,
minify: props.minify,
Expand Down

0 comments on commit f6836b0

Please sign in to comment.