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
@@ -37,36 +37,6 @@ OpenNext aims to support all Next.js 13 features. Some features are work in prog
37
37
-[x][NextAuth.js](https://next-auth.js.org)
38
38
-[x][Running at edge](#running-at-edge)
39
39
40
-
## Quick start
41
-
42
-
1. Navigate to your Next.js app
43
-
44
-
```bash
45
-
cd my-next-app
46
-
```
47
-
48
-
2. Build the app
49
-
50
-
```bash
51
-
npx open-next@latest build
52
-
```
53
-
54
-
This will generate an `.open-next` directory with the following bundles:
55
-
56
-
```bash
57
-
my-next-app/
58
-
.open-next/
59
-
assets/ -> Static files to upload to an S3 Bucket
60
-
server-function/ -> Handler code for server Lambda Function
61
-
image-optimization-function/ -> Handler code for image optimization Lambda Function
62
-
```
63
-
64
-
3. Add `.open-next` to your `.gitignore` file
65
-
```
66
-
# OpenNext
67
-
/.open-next/
68
-
```
69
-
70
40
## How does OpenNext work?
71
41
72
42
When calling `open-next build`, OpenNext **runs `next build`** to build the Next.js app, and then **transforms the build output** to a format that can be deployed to AWS.
@@ -77,7 +47,17 @@ OpenNext runs the `build` script in your `package.json` file. Depending on the l
77
47
78
48
#### Transforming the build output
79
49
80
-
The build output is then transformed into a format that can be deployed to AWS. Files in `assets/` are ready to be uploaded to AWS S3. And the function code is wrapped inside Lambda handlers, ready to be deployed to AWS Lambda or Lambda@Edge.
50
+
The build output is then transformed into a format that can be deployed to AWS. The transformed output is generated inside the `.open-next` folder within your Next.js app. Files in `assets/` are ready to be uploaded to AWS S3. And the function code is wrapped inside Lambda handlers, ready to be deployed to AWS Lambda or Lambda@Edge.
51
+
52
+
```bash
53
+
my-next-app/
54
+
.open-next/
55
+
assets/ -> Static files to upload to an S3 Bucket
56
+
server-function/ -> Handler code for server Lambda Function
57
+
image-optimization-function/ -> Handler code for image optimization Lambda Function
0 commit comments