develop with `next dev`. When you are done developing and want to deploy, run `wrangler pages dev` t

develop with next dev. When you are done developing and want to deploy, run wrangler pages dev to test the final version before deployment.

By default, the entry point is the build directory, so add the following to your
wrangler.toml

pages_build_output_dir = ".vercel/output/static"

Note:
wrangler dev
runs a worker, but next-on-pages is a pages feature (which is a subset of workers). So,
wrangler dev
will probably not be compatible with next-on-pages, so please use wrangler pages dev.
Was this page helpful?