OpenNext
Next.js, unlike Remix, Astro, or the other modern frontends, doesn't have a way to self-host across different platforms. You can run it as a Node.js application. But this doesn't work the same way as it does on Vercel.
There have been several attempts to fix this over the years. Broadly falling into two categories; open source framework specific implementations, or closed source product specific implementations.
These can be really hard to maintain separately as Next.js is constantly being updated.
OpenNext is an initiative to bring all these efforts together.
OpenNext is currently backed by:
- SST (opens in a new tab) community, maintains the AWS adapter
- Cloudflare (opens in a new tab) team, maintains the Cloudflare adapter
If you'd like to join the effort, connect with us on Discord (opens in a new tab).
OpenNext aims to support all Next.js features. And is widely deployed in production across multiple platforms.
NHS England (opens in a new tab), Udacity (opens in a new tab), Gymshark UK (opens in a new tab), SST (opens in a new tab), Cloudflare (opens in a new tab)