`wrangler dev` doesn't restart the server even after re-running the build command...
Has anyone experienced this issue?
My
wrangler.toml
looks like this:
1 Reply
I'm on macOS
Darwin 23.5.0 arm64 arm
with node v21.6.1
Interestingly, if I compile my bundle to a build/_worker.js
file and instead run wrangler pages dev ./build
, everything works correctly (including the build command).
That's pretty jank considering the config will throw if you try to use both a
pages_build_output_dir = "./build"
with a [build]
section... 🫣
While maybe temporary that this works, this is going to work the best for me, because page deployment seems to have more support for interesting tools such as having a unstable_pages.deploy(...)
function exported from "wrangler"
which is really nice to have in my deployment strategy, since it returns the deployed URL.