Cdk Nextjs

screenshot of Cdk Nextjs
nextjs

Deploy a NextJS application using AWS CDK

Overview:

The Deploy NextJS with CDKView on Construct Hub is a CDK construct designed to facilitate the deployment of a NextJS app using AWS CDK. It supports NextJs versions >=12.3.0+, including 13.0.0+, and utilizes the standalone output build mode. This construct deploys a NextJs static site with server-side rendering and API support, leveraging AWS Lambda and CloudFront.

Features:

  • Supported NextJs versions: >=12.3.0+, including 13.0.0+
  • Standalone output build mode: Utilizes standalone output build mode for deployment.
  • Server-side rendering and API support: Deploys a NextJs static site with server-side rendering and API capabilities.
  • AWS Lambda and CloudFront integration: Utilizes AWS Lambda and CloudFront for deployment architecture.
  • Compatibility with new NextJs features: Best suited for new NextJs features like ESM configuration, middleware, next-auth, and React server components.
  • Fallback origins: Utilizes CloudFront with a lambda function URL as a fallback origin for static files.
  • Contribution and compatibility: Built on top of open-next, with heavy reliance on several related repositories.
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.