Skip to content

Commit b901bf7

Browse files
authored
Fix the watch option of wrangler pages functions build (#225)
1 parent 6fc2276 commit b901bf7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/brown-planes-sip.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
Fix the `--watch` command for `wrangler pages functions build`.

packages/wrangler/src/pages.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,7 @@ export const pages: BuilderCallback<unknown, unknown> = (yargs) => {
986986
minify,
987987
sourcemap,
988988
fallbackService,
989+
watch,
989990
}) => {
990991
const functionsDirectory = "./functions";
991992

@@ -995,6 +996,7 @@ export const pages: BuilderCallback<unknown, unknown> = (yargs) => {
995996
minify,
996997
sourcemap,
997998
fallbackService,
999+
watch,
9981000
});
9991001
}
10001002
)

0 commit comments

Comments
 (0)