Serverless component for Next.js deployment to AWS Lambda@Edge
Top 11.1% on sourcepulse
This project provides a Serverless Component for deploying Next.js applications on AWS Lambda@Edge, targeting developers who want to leverage AWS's global edge network for low-latency server-side rendering and API routes. It aims to offer full feature parity with Next.js, simplifying serverless deployments without CloudFormation resource limits.
How It Works
The component deploys Next.js applications by leveraging AWS Lambda@Edge functions integrated with CloudFront. It intelligently routes requests: static assets and pre-rendered pages are served from S3, while server-side rendered pages and API routes are handled by Lambda@Edge functions, minimizing latency by executing at edge locations. This approach avoids CloudFormation's resource limits, enabling faster deployments for applications with many pages.
Quick Start & Requirements
serverless.yml
by adding component: "@sls-next/serverless-component@{version_here}"
.serverless
command.Highlighted Details
Maintenance & Community
This project is no longer actively maintained. The original author cited lack of time and complexity. Users are directed to alternatives like OpenNext and SST. The project has a single core maintainer and community contributors.
Licensing & Compatibility
The project is licensed under the MIT License. It is designed for AWS and Next.js.
Limitations & Caveats
The project is explicitly stated as no longer maintained, meaning no further updates or bug fixes are expected. It may not support newer Next.js features (e.g., Next.js 12 features like middleware are not supported). Users are strongly advised to migrate to modern alternatives.
6 months ago
1 day