Skip to content

Commit 05933a8

Browse files
committed
Add links
1 parent b43fd26 commit 05933a8

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

pages/cloudflare/index.mdx

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Callout } from 'nextra/components';
33

44
## Cloudflare
55

6-
The [@opennextjs/cloudflare](https://www.npmjs.com/package/@opennextjs/cloudflare) adapter lets you deploy Next.js apps to [Cloudflare Workers](https://developers.cloudflare.com/workers) and [Cloudflare Pages](https://developers.cloudflare.com/pages).
6+
The [@opennextjs/cloudflare](https://www.npmjs.com/package/@opennextjs/cloudflare) adapter lets you deploy Next.js apps to [Cloudflare Workers](https://developers.cloudflare.com/workers) and [Cloudflare Pages](https://developers.cloudflare.com/pages), using the [Node.js "runtime" from Next.js](https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes).
77

88
<Callout>
99
[@opennextjs/cloudflare](https://www.npmjs.com/package/@opennextjs/cloudflare) is pre 1.0, and still in active development. You should try it, [report bugs](https://github.com/opennextjs/opennextjs-cloudflare/issues), and [share feedback](https://github.com/opennextjs/opennextjs-cloudflare/discussions) to help make running Next.js apps on Cloudflare easier. We don't quite yet recommend using it for mission-critical production apps.
@@ -25,21 +25,28 @@ To create a new Next.js app, pre-configured to run on Cloudflare using @opennext
2525

2626
Follow the guide [here](/cloudflare/get-started) to use [@opennextjs/cloudflare](https://www.npmjs.com/package/@opennextjs/cloudflare) with an existing Next.js app.
2727

28+
### Supported Next.js runtimes
29+
30+
Next.js has [two "runtimes"](https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes) — "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](/workers/runtime-apis/nodejs/) that are provided by the Cloudflare Workers runtime.
31+
32+
This is an important difference from `@cloudflare/next-on-pages`, which only supports the "Edge" runtime. The Edge Runtime code in Next.js [intentionally constrains which APIs from Node.js can be used](https://github.com/vercel/next.js/blob/canary/packages/next/src/build/webpack/plugins/middleware-plugin.ts#L820), and the "Edge" runtime does not support all Next.js features.
33+
2834
### Supported Next.js features
2935

30-
TODO: Check these, what else should / shouldn't be on here
31-
32-
- [x] App & Pages Router
33-
- [x] API routes
34-
- [x] Dynamic routes
35-
- [x] Static site generation (SSG)
36-
- [x] Server-side rendering (SSR)
37-
- [x] Incremental static regeneration (ISR)
38-
- [x] Partial Prerendering (PPR)
39-
- [x] Middleware
40-
- [x] Image optimization
36+
- [x] [App Router](https://nextjs.org/docs/app) & [Pages Router](https://nextjs.org/docs/pages)
37+
- [x] [API routes](https://nextjs.org/docs/pages/building-your-application/routing/api-routes)
38+
- [x] [Dynamic routes](https://nextjs.org/docs/pages/building-your-application/routing/dynamic-routes)
39+
- [x] [Static Site Generation (SSG)](https://nextjs.org/docs/pages/building-your-application/rendering/static-site-generation)
40+
- [x] [Server-Side Rendering (SSR)](https://nextjs.org/docs/pages/building-your-application/rendering/server-side-rendering)
41+
- [x] [Incremental Static Regeneration (ISR)](https://nextjs.org/docs/pages/building-your-application/data-fetching/incremental-static-regeneration)
42+
43+
### Not Yet Supported Next.js features
44+
45+
- [ ] [Partial Prerendering (PPR)](https://nextjs.org/docs/app/building-your-application/rendering/partial-prerendering)
46+
- [ ] [Middleware](https://nextjs.org/docs/app/building-your-application/routing/middleware)
47+
- [ ] [Image optimization](https://nextjs.org/docs/pages/building-your-application/optimizing/images) (you can integrate Cloudflare Images with Next.js by following [this guide](https://developers.cloudflare.com/images/transform-images/integrate-with-frameworks/))
4148
- [ ] [NextAuth.js](https://next-auth.js.org)
42-
- [x] Experimental streaming support
49+
- [ ] [Experimental streaming support](https://nextjs.org/blog/next-15-rc#executing-code-after-a-response-with-nextafter-experimental)
4350

4451
### How @opennextjs/cloudflare Works
4552

0 commit comments

Comments
 (0)