You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: fix links in index.mdx and refactor simple example page (#442)
* docs: fix links in index.mdx and refactor simple example page
* Update docs/pages/config/simple_example.mdx
Co-authored-by: khuezy <khuezy.nguyen@gmail.com>
* docs: add aws4fetch instead of aws sdk to simple example
* docs: add fix for streaming when body is empty
* docs: remove callout in running in lambda@edge
---------
Co-authored-by: khuezy <khuezy.nguyen@gmail.com>
This will generate 2 server functions, the default one and the edge one. The edge one will still be deployed as a lambda function, but it will be deployed in the edge runtime.
47
108
48
-
Edge runtime function have less cold start time, but you can only deploy one route per function. They also does not have the middleware bundled in the function, so you need to use external middleware if you need it in front of the edge function.
109
+
Edge runtime function have less cold start time, but you can only deploy one route per function. They also do not have the middleware bundled in the function, so you need to use external middleware if you need it in front of the edge function.
//placement: "global", If you want your function to be deployed globally (i.e. lambda@edge) uncomment this line. Otherwise it will be deployed in the region specified in the stack
58
-
routes: ["app/api/test/route"],
59
-
patterns: ["api/test"],
119
+
routes: ['app/api/test/route'],
120
+
patterns: ['api/test'],
60
121
},
61
-
}
62
-
} satisfiesOpenNextConfig
122
+
},
123
+
} satisfiesOpenNextConfig;
63
124
64
125
exportdefaultconfig;
65
126
```
66
127
67
128
## External middleware
68
129
69
-
In some cases (edge runtime, function splitting with some middleware rewrites, etc) you might want to use external middleware.
70
-
With the default middleware configuration, it is bundled for a deployment in lambda@edge.
130
+
In some cases (edge runtime, function splitting with some middleware rewrites, etc) you might want to use external middleware.
131
+
With the default middleware configuration, it is bundled for a deployment in lambda@edge.
Copy file name to clipboardExpand all lines: docs/pages/index.mdx
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
-
import {SITE} from"../config"
2
-
import { Callout } from'nextra/components'
1
+
import {SITE} from'../config';
2
+
import { Callout } from'nextra/components';
3
3
4
4
<Callout>
5
5
This docs is for the V3 of OpenNext. If you are looking for the V2 docs, you can find them [here](/v2).
6
6
7
7
If you're migrating from V2 to V3, you can find the migration guide [here](/migration#from-opennext-v2).
8
+
8
9
</Callout>
9
10
10
11
### Open source Next.js adapter
11
12
12
13
---
13
14
14
-
15
-
OpenNext takes the Next.js build output and converts it into packages that can be deployed across a variety of environments.
15
+
OpenNext takes the Next.js build output and converts it into packages that can be deployed across a variety of environments.
16
16
Natively OpenNext has support for AWS Lambda and classic Node Server. It also offer partial support for the `edge` runtime in Cloudflare Workers.
17
17
18
18
One notable feature of OpenNext is its ability to split the Next.js output, enabling selective deployment to different targets such as AWS Lambda, Cloudflare Workers, or Amazon ECS. This facilitates a tailored deployment strategy that aligns with the specific needs of your application.
@@ -38,6 +38,7 @@ Closed source SaaS products like [Amplify](https://aws.amazon.com/amplify/) have
38
38
---
39
39
40
40
We need your help keeping it up to date and feature complete. Make sure to [**join us on Discord**](https://sst.dev/discord) and [**star us on GitHub**](https://github.com/sst/open-next).
41
+
41
42
## Features
42
43
43
44
OpenNext aims to support all Next.js 14 features. Some features are work in progress. Please open a [new issue](https://github.com/sst/open-next/issues/new) to let us know!
@@ -47,12 +48,12 @@ OpenNext aims to support all Next.js 14 features. Some features are work in prog
0 commit comments