diff --git a/.changeset/brown-planes-sip.md b/.changeset/brown-planes-sip.md new file mode 100644 index 000000000000..37e88cc93d36 --- /dev/null +++ b/.changeset/brown-planes-sip.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +Fix the `--watch` command for `wrangler pages functions build`. diff --git a/packages/wrangler/src/pages.tsx b/packages/wrangler/src/pages.tsx index 95b238e1c1b3..32dca0464d5a 100644 --- a/packages/wrangler/src/pages.tsx +++ b/packages/wrangler/src/pages.tsx @@ -986,6 +986,7 @@ export const pages: BuilderCallback = (yargs) => { minify, sourcemap, fallbackService, + watch, }) => { const functionsDirectory = "./functions"; @@ -995,6 +996,7 @@ export const pages: BuilderCallback = (yargs) => { minify, sourcemap, fallbackService, + watch, }); } )