OpenNext project and full NextJS support on Cloudflare
Up until now if you wanted to run your NextJS app on cloudflare it would only work if it was a pure static site or it ran purely on the edge runtime which was pretty restrictive. We ourselves have wan...
Up until now if you wanted to run your NextJS app on cloudflare it would only work if it was a pure static site or it ran purely on the edge runtime which was pretty restrictive. We ourselves have wanted to run our nextjs app for Flowershow on cloudflare but ended up on Vercel b/c we just couldn't get it to work easily with the edge runtime.
However, that is now changing with the arrival of the OpenNext which aims to have all NextJS applications running on a variety of platforms including Cloudflare 🙌.
Cloudflare support
https://opennext.js.org/cloudflare
Getting there but not yet fully ready for primtetime:
@opennextjs/cloudflare is pre 1.0, and still in active development. You should try it, report bugs, share feedback, and contribute code to help make running Next.js apps on Cloudflare easier. We don't quite yet recommend using it for mission-critical production apps.
Dedicated tool for converting NextJS to run with OpenNext on cloudflare
There's even a dedicated tool (467⭐) for converting NextJS to run with OpenNext on cloudflare though it still early stage: