A zero-configuration Next.js 10/11 serverless component for AWS Lambda@Edge aiming for full feature parity. Since Next.js 8.0, serverless mode was introduced which provides a new low-level API that projects like this can use to deploy onto different cloud providers. However, Next.js doesn't provide the full serverless routing logic, hence why this project is needed to fill the gap. The long-term vision is to allow you to self-host with various clouds, starting with AWS. This project is a better version of the serverless plugin which focuses on addressing core issues like next 9 support, better development experience, the 200 CloudFormation resource limit and performance. Users of this component should be able to use Next.js development tooling, aka next dev. It is the component's job to deploy your application ensuring parity with all of next's features we know and love. We try to emulate all or most of the routing and server-side logic from Next.js.
Features
- There is little to no configuration needed
- You can extend defaults based on your application needs
- With a simplified architecture and no use of CloudFormation
- Server side rendered pages at the Edge
- API requests are also served from the CloudFront edge locations using Lambda@Edge
- Statically optimized pages compiled by next are served from CloudFront edge locations with low latency and cost