In the example folder, you can find a Next.js benchmark app. It contains a variety of pages that each test a single Next.js feature. The app is deployed to both Vercel and AWS using SST.
AWS_SDK_DYNAMODB_MAX_ATTEMPTS: The maximum number of times requests that encounter retryable failures should be attempted for DynamoDB. Defaults to 3.
AWS_SDK_S3_MAX_ATTEMPTS: The maximum number of times requests that encounter retryable failures should be attempted for S3. Defaults to 3.
DYNAMO_BATCH_WRITE_COMMAND_CONCURRENCY: The number of concurrent batch write commands to DynamoDB. Defaults to 4 in an effort to leave plenty of DynamoDB write request capacity for the production load.
Contribute
To run OpenNext locally:
Clone this repository.
Build open-next:
cd open-next
pnpm build
Run open-next in watch mode:
pnpm dev
Now, you can make changes in open-next and build your Next.js app to test the changes.
cd path/to/my/nextjs/app
path/to/open-next/packages/open-next/dist/index.js build
Acknowledgements
We are grateful for the projects that inspired OpenNext and the amazing tools and libraries developed by the community:
nextjs-lambda by Jan for serving as inspiration for packaging Next.js's standalone output to Lambda.
CDK NextJS by JetBridge for its contribution to the deployment architecture of a Next.js application on AWS.
serverless-http by Doug Moscrop for developing an excellent library for transforming AWS Lambda events and responses.
The npm package open-next receives a total of 21,697 weekly downloads. As such, open-next popularity was classified as popular.
We found that open-next demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 0 open source maintainers collaborating on the project.
Package last updated on 22 Sep 2024
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.