Comment by byteCoder
OpenNext on Cloudflare is the only way I've successfully gotten NextJS to work in a Cloudflare Worker.
OpenNext on Cloudflare is the only way I've successfully gotten NextJS to work in a Cloudflare Worker.
You need to configure it for static export if that’s what you want: https://nextjs.org/docs/app/guides/static-exports
But this won’t support all framework features. The default expectation for Next.js is with a server runtime for SSR.
Interesting. Yea, I didn't want a worker, just a static html page with my javascript.