HN Top New Show Ask Jobs

settings

Theme

Hand Mode

Feed

Comment by byteCoder

Comment by byteCoder 7 hours ago

2 replies

View on Hacker News

OpenNext on Cloudflare is the only way I've successfully gotten NextJS to work in a Cloudflare Worker.

https://opennext.js.org/cloudflare

latchkey 5 hours ago

Interesting. Yea, I didn't want a worker, just a static html page with my javascript.

Reply View | 1 reply
  • kcrwfrd_ 5 hours ago

    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.

    Reply View | 0 replies