{"repo":"jetbridge/cdk-nextjs","free":true,"listed":false,"github":"https://github.com/jetbridge/cdk-nextjs","clone":"git clone https://github.com/jetbridge/cdk-nextjs.git","description":"Deploy a NextJS application using AWS CDK","language":"TypeScript","stars":362,"topics":["aws","cdk","cloudfront","lambda","next","nextjs","serverless"],"license":"Apache-2.0","category":"saas-starters-boilerplates","readme_excerpt":"Deploy NextJS with CDK What is this? A CDK construct to deploy a NextJS app using AWS CDK. Supported NextJs versions: =12.3.0+ (includes 13.0.0+) Uses the standalone output build mode. Quickstart Important Notes - Due to CloudFront's Distribution Cache Behavior pattern matching limitations, a cache behavior will be created for each top level file or directory in your public/ folder. CloudFront has a soft limit of 25 cache behaviors per distribution. Therefore, it's recommended to include all assets that can be under a top level folder like public/static/ . Learn more in open-next docs here. Documentation Available on Construct Hub. Examples See example CDK apps here including: - App Router - Pages Router - App/Pages Router - High Security - Multiple Sites To deploy an example, make sure to read the README.md Discord Chat We're in the #aws channel on the Open-Next Discord. About Deploys a NextJs static site with server-side rendering and API support. Uses AWS lambda and CloudFront. There is a new (since Next 12) standalone output mode which uses output tracing to generate a minimal server and static files. This standalone server can be converted into a CloudFront distribution and a lambda handler that handles SSR, API, and routing. The CloudFront default origin first checks S3 for static files and falls back to an HTTP origin using a lambda function URL. Benefits This approach is most compatible with new NextJs features such as ESM configuration, middleware, next-auth, and Rea","default_branch":null,"files":null,"tree":[],"storefront":"/r/jetbridge","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jetbridge/cdk-nextjs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}