AWS
OpenNext takes the Next.js build output and converts it into packages that can be deployed across a variety of environments. Natively OpenNext has support for AWS Lambda, Cloudflare, and classic Node.js Server.
One notable feature of OpenNext is its ability to split the Next.js output, enabling selective deployment to different targets such as AWS Lambda, Cloudflare Workers, or Amazon ECS. This facilitates a tailored deployment strategy that aligns with the specific needs of your application.
Thanks to this, you could deploy part of your API to ECS, another part to Cloudflare Workers, your SSR routes to another ECS cluster, and your ISR/SSG routes to Lambda.
OpenNext AWS is currently maintained by the SST (opens in a new tab) community; notably, conico974 (opens in a new tab) and khuezy (opens in a new tab).
We need your help keeping it up to date and feature complete. Make sure to join us on Discord (opens in a new tab) and star us on GitHub (opens in a new tab).
OpenNext aims to support all Next.js 14 features. Some features are work in progress. Please open a new issue (opens in a new tab) to let us know!
- App & Pages Router
- API routes
- Dynamic routes
- Static site generation (SSG)
- Server-side rendering (SSR)
- Incremental static regeneration (ISR)
- Middleware
- Image optimization
- NextAuth.js (opens in a new tab)
- Running in lambda@edge
- No cold start
- Experimental streaming support
Get started with deploying your app with OpenNext and your favorite framework.