Skip to content

Commit

Permalink
Fix the watch option of wrangler pages functions build (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
GregBrimble authored Jan 9, 2022
1 parent 6fc2276 commit b901bf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-planes-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Fix the `--watch` command for `wrangler pages functions build`.
2 changes: 2 additions & 0 deletions packages/wrangler/src/pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@ export const pages: BuilderCallback<unknown, unknown> = (yargs) => {
minify,
sourcemap,
fallbackService,
watch,
}) => {
const functionsDirectory = "./functions";

Expand All @@ -995,6 +996,7 @@ export const pages: BuilderCallback<unknown, unknown> = (yargs) => {
minify,
sourcemap,
fallbackService,
watch,
});
}
)
Expand Down

0 comments on commit b901bf7

Please sign in to comment.