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
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ When calling `open-next build`, OpenNext **runs `next build`** to build the Next
73
73
74
74
#### Building the Next.js app
75
75
76
-
OpenNext runs the `build` script in your `package.json` file. Depnding on the lock file found in the app, the corresponding packager manager will be used. Either `npm run build`, `yarn build`, or `pnpm build` will be run.
76
+
OpenNext runs the `build` script in your `package.json` file. Depending on the lock file found in the app, the corresponding packager manager will be used. Either `npm run build`, `yarn build`, or `pnpm build` will be run.
Create a Lambda function using the code in the `.open-next/image-optimization-function` folder, with the handler `index.mjs`. Ensure that the **arm64** architecture is used.
119
119
120
-
This function handles image optimization requests when the Next.js `<Image>` component is used. The [sharp](https://www.npmjs.com/package/sharp) library, which is bundled with the function, is used to convert the image. The library is compiled against the `arm64` architecture and is intended to run on AWS Lamba Arm/Graviton2 architecture. [Learn about the better cost-performance offered by AWS Graviton2 processors.](https://aws.amazon.com/blogs/aws/aws-lambda-functions-powered-by-aws-graviton2-processor-run-your-functions-on-arm-and-get-up-to-34-better-price-performance/)
120
+
This function handles image optimization requests when the Next.js `<Image>` component is used. The [sharp](https://www.npmjs.com/package/sharp) library, which is bundled with the function, is used to convert the image. The library is compiled against the `arm64` architecture and is intended to run on AWS Lambda Arm/Graviton2 architecture. [Learn about the better cost-performance offered by AWS Graviton2 processors.](https://aws.amazon.com/blogs/aws/aws-lambda-functions-powered-by-aws-graviton2-processor-run-your-functions-on-arm-and-get-up-to-34-better-price-performance/)
121
121
122
122
Note that the image optimization function responds with the `Cache-Control` header, so the image will be cached both at the CDN level and at the browser level.
123
123
@@ -296,7 +296,7 @@ This does a few things:
296
296
It is recommended to **turn off debug mode when building for production** because:
297
297
298
298
1. Un-minified function code is 2-3X larger than minified code. This will result in longer Lambda cold start times.
299
-
1. Logging the event object on each request can result in a lot of logs being written to AWS CloudWatch. This will result in increated AWS costs.
299
+
1. Logging the event object on each request can result in a lot of logs being written to AWS CloudWatch. This will result in increased AWS costs.
300
300
301
301
## Opening an issue
302
302
@@ -342,7 +342,7 @@ We previously built the app using the "minimalMode" and having the same architec
342
342
343
343
#### How does OpenNext compared to AWS Amplify?
344
344
345
-
OpenNext is an open source initiative, and there are a couple of advantages when comapred to Amplify:
345
+
OpenNext is an open source initiative, and there are a couple of advantages when compared to Amplify:
346
346
347
347
1. The community contributions to OpenNext allows it to have better feature support.
0 commit comments