Develop the full app locally with Functions
cloudflare pages
// what it does
Serves your static assets plus Pages Functions (`functions/` or `_worker.js`) in a local Workers runtime at localhost. This is how you exercise the full-stack app before deploying; `--live-reload` refreshes the browser on change.
// shell
$ wrangler pages dev ./dist$ wrangler pages dev ./dist --port 8788 --live-reload// gotcha
`pages dev` runs everything locally — it does not hit your deployed project, so any remote-only resource must be bound or mocked (see the bindings entry).