Skip to content

Commit 29393e4

Browse files
authored
doc: Composable Caching is not supported yet (#52)
1 parent 8165bc6 commit 29393e4

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

pages/aws/comparison.mdx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
It should be noted that open-next does not actually deploy the app. It only bundles everything for your IAC to deploy it.
1+
It should be noted that open-next does not actually deploy the app. It only bundles everything for your IAC to deploy it.
22

33
Here is a table comparing the different options to deploy a next.js app:
44

5-
| Features | OpenNext | Vercel | AWS Amplify | Docker Standalone |
6-
| --- | --- | --- | --- | --- |
7-
| **Function splitting** | Yes | Yes | No | No |
8-
| **Multiple deployment target** ¹ | Yes | Yes ² | No | No |
9-
| **Serverless** | Yes | Yes | Yes | No ³ |
10-
| **Warmer function** | Yes | No | No | Not necessary |
11-
| **External middleware** | Yes ⁴ | Yes | No | No |
12-
| **Edge runtime support** | Partial Support ⁵ | Yes | Embedded ⁶ | Embedded ⁶ |
13-
| **ISR** | Yes | Yes | Yes | Yes ⁷ |
14-
| **On-Demand Revalidation** | Yes ⁸ | Yes | No | Yes ⁸ |
15-
| **Custom server** | Yes ⁹ | No | No | Yes |
5+
| Features | OpenNext | Vercel | AWS Amplify | Docker Standalone |
6+
| -------------------------------- | ----------------- | ------ | ----------- | ----------------- |
7+
| **Function splitting** | Yes | Yes | No | No |
8+
| **Multiple deployment target** ¹ | Yes | Yes ² | No | No |
9+
| **Serverless** | Yes | Yes | Yes | No ³ |
10+
| **Warmer function** | Yes | No | No | Not necessary |
11+
| **External middleware** | Yes ⁴ | Yes | No | No |
12+
| **Edge runtime support** | Partial Support ⁵ | Yes | Embedded ⁶ | Embedded ⁶ |
13+
| **ISR** | Yes | Yes | Yes | Yes ⁷ |
14+
| **On-Demand Revalidation** | Yes ⁸ | Yes | No | Yes ⁸ |
15+
| **Custom server** | Yes ⁹ | No | No | Yes |
1616

1717
1. Multiple deployment target means that you can deploy the same app to different target like some part to ECS, some part to Lambda etc...
1818
2. Vercel supports only serverless Node (backed by AWS Lambda) and Edge runtime (backed by cloudflare workers)
19-
2. You can deploy a dockerized next.js app to AWS lambda using AWS Lambda Web adapter, but some part like ISR will not work as expected
20-
3. OpenNext supports external middleware, but it is not enabled by default.
21-
4. OpenNext supports edge runtime in node, but every route needs to be deployed separately. OpenNext supports edge runtime in cloudflare workers, but only for app router api routes.
22-
5. Embedded means that the edge runtime is embedded inside the bundle. It emulates a fake edge runtime inside the prod environment.
23-
6. You might experience some inconsistencies with ISR if you have a CDN in front of your app. Next always set the cache-control header to `s-maxage=REVALIDATION_TIME, stale-while-revalidate`, it means that your data (json or rsc) and your html might be out of sync.
24-
7. You need to invalidate the CDN manually. For OpenNext, here is an example for cloudfront
25-
8. OpenNext supports custom server, but it is not enabled by default. You can have a custom server even in a serverless environment.
19+
3. You can deploy a dockerized next.js app to AWS lambda using AWS Lambda Web adapter, but some part like ISR will not work as expected
20+
4. OpenNext supports external middleware, but it is not enabled by default.
21+
5. OpenNext supports edge runtime in node, but every route needs to be deployed separately. OpenNext supports edge runtime in cloudflare workers, but only for app router api routes.
22+
6. Embedded means that the edge runtime is embedded inside the bundle. It emulates a fake edge runtime inside the prod environment.
23+
7. You might experience some inconsistencies with ISR if you have a CDN in front of your app. Next always set the cache-control header to `s-maxage=REVALIDATION_TIME, stale-while-revalidate`, it means that your data (json or rsc) and your html might be out of sync.
24+
8. You need to invalidate the CDN manually. For OpenNext, here is an example for cloudfront
25+
9. OpenNext supports custom server, but it is not enabled by default. You can have a custom server even in a serverless environment.

pages/aws/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ We need your help keeping it up to date and feature complete. Make sure to [**jo
2828

2929
---
3030

31-
OpenNext aims to support all Next.js 14 features. Some features are work in progress. Please open a [new issue](https://github.com/opennextjs/opennextjs-aws/issues/new) to let us know!
31+
OpenNext aims to support all Next.js 15 features. Some features are work in progress. Please open a [new issue](https://github.com/opennextjs/opennextjs-aws/issues/new) to let us know!
3232

3333
- [x] App & Pages Router
3434
- [x] API routes
@@ -41,7 +41,8 @@ OpenNext aims to support all Next.js 14 features. Some features are work in prog
4141
- [x] [NextAuth.js](https://next-auth.js.org)
4242
- [x] [Running in lambda@edge](/aws/config/simple_example#running-in-lambdaedge)
4343
- [x] [No cold start](/aws/inner_workings/components/warmer)
44-
- [x] Experimental streaming support
44+
- [x] Support for after
45+
- [ ] [Composable Caching](https://nextjs.org/blog/composable-caching) (`'use cache'`) is a Next.js 15 feature and not supported yet.
4546

4647
---
4748

pages/cloudflare/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ We will update the list as we progress towards releasing 1.0.
5454
- [ ] [Pages Router](https://nextjs.org/docs/pages) (you should use the App Router instead, which was introduced in Next.js 13)
5555
- [ ] [Incremental Static Regeneration (ISR)](https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration)
5656
- [ ] [Partial Prerendering (PPR)](https://nextjs.org/docs/app/building-your-application/rendering/partial-prerendering)
57-
- [ ] [Experimental streaming support](https://nextjs.org/blog/next-15-rc#executing-code-after-a-response-with-nextafter-experimental)
57+
- [ ] [Support for after](https://nextjs.org/blog/next-15-rc#executing-code-after-a-response-with-nextafter-experimental)
58+
- [ ] [Composable Caching](https://nextjs.org/blog/composable-caching) (`'use cache'`) is a Next.js 15 feature and not supported yet.
5859

5960
We welcome both contributions and feedback!
6061

0 commit comments

Comments
 (0)