Skip to content

Commit

Permalink
fix(wrangler): Validate routes on config file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmenPopoviciu committed Sep 24, 2024
1 parent ffe8d10 commit 792e26b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/friendly-papayas-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

fix: Validate `[routes]` on configuration file changes
3 changes: 3 additions & 0 deletions packages/wrangler/src/dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,9 @@ export async function startDev(args: StartDevOptions) {
"dev"
);

// ensure we re-validate routes
await getHostAndRoutes(args, config);

assetsOptions = processAssetsArg(args, config);

/*
Expand Down

0 comments on commit 792e26b

Please sign in to comment.