This project packages Next.js applications to run natively on AWS’s serverless stack, mapping framework features onto services like Lambda, CloudFront, and S3. It translates routing, API handlers, and middleware into deployable artifacts, handling edge cases such as image optimization, ISR, and streaming responses. Static assets are uploaded to object storage and cached at the edge, while dynamic routes are executed in short-lived compute with cold-start-aware build settings. The adapter aims to preserve the Next.js developer experience—file-based routing, app/router features, and incremental builds—while producing infrastructure that scales automatically. Configuration focuses on environment variables, build hooks, and sensible defaults rather than complex bespoke templates. By encapsulating provider-specific plumbing, the project lets teams deploy the same codebase confidently across staging and production without manual rewrites.

Features

  • Supports App & Pages routers, API and dynamic routes
  • Enables SSG, SSR, ISR, middleware, and image optimization
  • Minimizes cold starts and supports Lambda@Edge and composable caching
  • Allows selective deployment of different routes to different AWS targets (Lambda, ECS, etc.)
  • Compatible with the latest Next.js versions per AWS adapter compatibility matrix
  • Debug mode with detailed logging

Project Samples

Project Activity

See All Activity >

Categories

Build Tools

License

MIT License

Follow OpenNext

OpenNext Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OpenNext!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

TypeScript

Related Categories

TypeScript Build Tools

Registered

2025-09-01