Why does `wranger pages dev` watch the output directory changes instead of source?
Hi all š
When I run
wranger pages dev, it only rebuilds when something changes in my output directory, build.
How do I get it to rebuild when something in my source directory, src changes?
My directory structure looks like:
And npm run build just runs tsc --outDir build to compile all of the stuff in src to the corresponding JS file in build
wrangler.toml:
1 Reply
I'm using "advanced mode" instead of a
functions directory, and this bit of source code in wrangler seems to imply that I can't really configure this, but I might be missing something.
Alternatively, can I have a single file in the functions directory that matches every path (even nested directories)?