The @opennextjs/cloudflare (opens in a new tab)  adapter lets you deploy Next.js apps to Cloudflare Workers (opens in a new tab)  and Cloudflare Pages

Index - OpenNext

submited by
Style Pass
2024-09-26 14:30:04

The @opennextjs/cloudflare (opens in a new tab) adapter lets you deploy Next.js apps to Cloudflare Workers (opens in a new tab) and Cloudflare Pages (opens in a new tab) , using the Node.js "runtime" from Next.js (opens in a new tab) .

@opennextjs/cloudflare (opens in a new tab) is pre 1.0, and still in active development. You should try it, report bugs (opens in a new tab) , share feedback (opens in a new tab) , 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.

You can also use @cloudflare/next-on-pages (opens in a new tab) to deploy Next.js apps to Cloudflare Pages. You can review the differences in supported Next.js features between @opennextjs/cloudflare and @cloudflare/next-on-pages here.

Next.js has two "runtimes" (opens in a new tab) — "Edge" and "Node.js". When you use @opennextjs/cloudflare, your app can use the Node.js runtime, which is more fully featured, and allows you to use the Node.js APIs that are provided by the Cloudflare Workers runtime.

Leave a Comment