Hi how would I go about using wrangler
Hi, how would I go about using wrangler for dev environment with next.js in edge mode as described in https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/ ? I'm making a next.js app to be deployed on pages, not as static export but using the edge runtime. But there is nothing about how to run that locally with wrangler.
3 Replies
I figured combining
npx @cloudflare/next-on-pages --experimental-minify
and npx wrangler@latest dev .vercel/output/static/_worker.js
should provide a solution, but this is giving errors even on a brand new project
And if I add
--experimental-local
then it gives thisOkay, I realised it's missing compatibility flags, I added those and it's still giving errors. I can make a reproduction repo later but it's easy to reproduce just following the guide in the link I posted, and then trying to run it with wrangler.
where would be the best place to get help on this? @here