-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Add Next.js features support #22421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Next.js features support #22421
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,28 @@ Next.js supports Server-side and Client-side rendering, as well as Partial Prere | |
|
|
||
| You can deploy your Next.js app to Cloudflare Workers using the OpenNext adaptor. | ||
|
|
||
| ## Next.js supported features | ||
|
|
||
| Most Next.js features are supported by the Cloudflare OpenNext adapter: | ||
|
|
||
| | Feature | Cloudflare adapter | Notes | | ||
| | ------------------------------------- | -------------------- | ---------------------------------------------------------------------------- | | ||
| | App Router | 🟢 supported | | | ||
| | Pages Router | 🟢 supported | | | ||
| | Route Handlers | 🟢 supported | | | ||
| | React Server Components | 🟢 supported | | | ||
| | Static Site Generation (SSG) | 🟢 supported | | | ||
| | Server-Side Rendering (SSR) | 🟢 supported | | | ||
| | Incremental Static Regeneration (ISR) | 🟢 supported | | | ||
| | Server Actions | 🟢 supported | | | ||
| | Response streaming | 🟢 supported | | | ||
| | asynchronous work with `next/after` | 🟢 supported | | | ||
| | Middleware | 🟢 supported | | | ||
| | Image optimization | 🟢 supported | Supported via [Cloudflare Images](https://developers.cloudflare.com/images/) | | ||
| | Partial Prerendering (PPR) | 🟢 supported | PPR is experimental in Next.js | | ||
| | Composable Caching ('use cache') | 🟢 supported | Composable Caching is experimental in Next.js | | ||
| | Node.js in Middleware | ⚪ not yet supported | Node.js middleware introduced in 15.2 are not yet supported | | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should maybe format to be more like https://developers.cloudflare.com/data-localization/compatibility/ throughout?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I based the format on https://developers.cloudflare.com/workers/runtime-apis/nodejs/#supported-nodejs-apis but I agree that a documented/consistent format across the site would be better idea |
||
|
|
||
| ## Deploy a new Next.js project on Workers | ||
|
|
||
| <Steps> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.