# serverless-nextjs/serverless-next.js

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/serverless-nextjs-serverless-next-js).**

4,462 stars · 447 forks · TypeScript · MIT · archived

## Links

- GitHub: https://github.com/serverless-nextjs/serverless-next.js
- awesome-repositories: https://awesome-repositories.com/repository/serverless-nextjs-serverless-next-js.md

## Topics

`api-gateway` `aws` `aws-lambda` `cloudfront` `edge` `lambda` `lambdaatedge` `next` `nextjs` `serverless` `serverless-framework`

## Description

This project is a serverless infrastructure orchestrator and deployment tool designed to host Next.js applications on AWS. It functions as an edge computing deployment framework and cloud infrastructure-as-code wrapper that automates the provisioning of AWS Lambda functions, S3 buckets, and CloudFront distributions.

The system distinguishes itself by distributing server-side rendering and API routes across global edge locations to reduce latency. It integrates directly with content delivery networks to optimize the delivery of static assets and rendered pages, while providing a layer to wrap application handlers for compatibility with serverless environments.

The platform covers broad capability areas including global content delivery, serverless API infrastructure, and automated resource configuration. It manages traffic through edge route logic and internationalization handling, while supporting performance strategies such as incremental static regeneration and edge-based image optimization. Infrastructure is managed via Terraform configurations, providing control over memory limits, timeout durations, and IAM permission assignments.

## Tags

### DevOps & Infrastructure

- [Edge Computing Deployments](https://awesome-repositories.com/f/devops-infrastructure/edge-computing-deployments.md) — Deploys compute and storage resources at the network edge to reduce global user latency.
- [Edge Network Deployment](https://awesome-repositories.com/f/devops-infrastructure/edge-network-deployment.md) — Packages and deploys Next.js applications to a global network edge to minimize latency for users. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/.yarnrc))
- [Lambda Deployments](https://awesome-repositories.com/f/devops-infrastructure/aws-ecs-deployments/lambda-deployments.md) — Implements packaging and deployment patterns specifically for AWS Lambda. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/CHANGELOG.md))
- [AWS Lambda Adapters](https://awesome-repositories.com/f/devops-infrastructure/aws-ecs-deployments/lambda-deployments/aws-lambda-adapters.md) — Provides a compatible serverless layer to wrap Next.js applications for execution within AWS Lambda.
- [Terraform Provisioning](https://awesome-repositories.com/f/devops-infrastructure/cloud-infrastructure-deployment/managed-infrastructure-deployment/infrastructure-deployment-provisioning/declarative-infrastructure-provisioning/terraform-provisioning.md) — Uses declarative Terraform configurations to automate the provisioning of serverless functions, DNS, and storage buckets.
- [Content Delivery Network Configurations](https://awesome-repositories.com/f/devops-infrastructure/content-delivery-network-configurations.md) — Configures cache policies, TTLs, and geo-restrictions for the content delivery network. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/CHANGELOG.md))
- [Static Website Hosting](https://awesome-repositories.com/f/devops-infrastructure/deployment-management-strategies/automation-and-tooling/deployment-tooling/static-site-hosting/static-website-hosting.md) — Automates the deployment of static web content and pre-rendered pages to cloud storage and CDNs.
- [Edge Web Application Hosting](https://awesome-repositories.com/f/devops-infrastructure/edge-computing/graphql-edge-hosting/edge-web-application-hosting.md) — Provides hosting for full-stack web applications, including API routes and rendered pages, at the network edge. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/README.md))
- [Serverless API Deployments](https://awesome-repositories.com/f/devops-infrastructure/serverless-api-frameworks/serverless-api-deployments.md) — Deploys API gateways integrated with cloud functions to serve application pages and API routes. ([source](https://github.com/serverless-nextjs/serverless-next.js/tree/master/packages/libs/lambda))
- [Serverless Deployment](https://awesome-repositories.com/f/devops-infrastructure/serverless-deployment.md) — Provides automated deployment of applications to event-driven cloud environments. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/package.json))
- [Serverless Orchestration](https://awesome-repositories.com/f/devops-infrastructure/serverless-orchestration.md) — Provides a platform for managing the deployment and scaling of serverless infrastructure.
- [CDN Behavior Configurations](https://awesome-repositories.com/f/devops-infrastructure/cdn-behavior-configurations.md) — Allows overriding default CDN settings to add custom origins, error responses, and geo-restrictions. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/README.md))
- [Cloud Resource Integrations](https://awesome-repositories.com/f/devops-infrastructure/cloud-resource-integrations.md) — Manages the deployment and tagging of supporting cloud resources, including storage buckets and message queues. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/CHANGELOG.md))
- [Custom Domain Mappings](https://awesome-repositories.com/f/devops-infrastructure/custom-domain-mappings.md) — Generates SSL certificates and manages DNS records to map custom domains to a delivery distribution. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/README.md))
- [Image Optimization Pipelines](https://awesome-repositories.com/f/devops-infrastructure/file-uploaders/binary-upload-optimizers/image-optimization-pipelines.md) — Processes and compresses images using edge functions to improve page load speeds and reduce payloads. ([source](https://github.com/serverless-nextjs/serverless-next.js#readme))
- [Image Optimization Pipelines](https://awesome-repositories.com/f/devops-infrastructure/image-optimization-pipelines.md) — Ships an automated pipeline to compress and scale images on the fly using edge functions.
- [Edge Resource Orchestrators](https://awesome-repositories.com/f/devops-infrastructure/infrastructure-as-code-toolkits/edge-resource-orchestrators.md) — Provides a configuration layer that simplifies provisioning of AWS edge resources.
- [Serverless Resource Configurations](https://awesome-repositories.com/f/devops-infrastructure/serverless-resource-configurations.md) — OpenNext provides the ability to override resource settings like memory size and timeouts for individual pages or globally across all functions. ([source](https://github.com/serverless-nextjs/serverless-next.js/tree/master/packages/deprecated/serverless-plugin))
- [Serverless Resource Tuning](https://awesome-repositories.com/f/devops-infrastructure/serverless-resource-tuning.md) — Optimizes resource allocations for serverless functions to balance performance and cost. ([source](https://github.com/serverless-nextjs/serverless-next.js#readme))

### Content Management & Publishing

- [Static Asset Hosting](https://awesome-repositories.com/f/content-management-publishing/static-asset-hosting.md) — Manages the creation of storage buckets and the uploading of asset files for CDN availability. ([source](https://github.com/serverless-nextjs/serverless-next.js/tree/master/packages/deprecated/serverless-plugin))

### Data & Databases

- [Edge Rendering](https://awesome-repositories.com/f/data-databases/custom-python-integration/distributed-logic-execution/global-edge-execution/edge-rendering.md) — Executes server-side page generation and API logic at distributed network locations to minimize global latency.
- [Runtime Resource Tuning](https://awesome-repositories.com/f/data-databases/database-deployment-tools/logic-deployment/edge-runtime-deployments/runtime-resource-tuning.md) — Sets specific memory limits, timeouts, and runtime versions for primary and API serverless functions. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/README.md))
- [Page Caching Controls](https://awesome-repositories.com/f/data-databases/performance-caching-systems/page-caching-controls.md) — Implements granular control of caching behavior for specific pages and dynamic content. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/README.md))
- [HTTP Cache Headers](https://awesome-repositories.com/f/data-databases/performance-caching-systems/page-caching-controls/http-cache-headers.md) — Manages HTTP headers that control browser and proxy caching behavior. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/CHANGELOG.md))

### Networking & Communication

- [Content Delivery Networks](https://awesome-repositories.com/f/networking-communication/content-delivery-networks.md) — Utilizes distributed server networks to deliver web content efficiently to global users.
- [Edge Function Logic](https://awesome-repositories.com/f/networking-communication/network-infrastructure-routing/network-routing-traffic-management/network-routing/edge-traffic-management/edge-function-logic.md) — Implements programmable logic at the network edge to handle redirects, rewrites, and custom HTTP headers. ([source](https://github.com/serverless-nextjs/serverless-next.js#readme))
- [CDN Cache Policies](https://awesome-repositories.com/f/networking-communication/network-infrastructure-routing/network-routing-traffic-management/network-traffic-management/cdn-integrations/cdn-cache-policies.md) — Implements cache-control policies and TTL settings to balance content freshness with delivery speed across edge nodes.
- [Request Routing](https://awesome-repositories.com/f/networking-communication/network-infrastructure-routing/network-routing-traffic-management/request-routing.md) — Implements custom redirects, external rewrites, and trailing slash handling to control site navigation. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/CHANGELOG.md))
- [Edge Redirect Engines](https://awesome-repositories.com/f/networking-communication/request-proxies/edge-proxies/edge-redirect-engines.md) — Implements serverless functions at the network edge to handle request redirects, rewrites, and custom headers.

### Web Development

- [CDN Asset Delivery](https://awesome-repositories.com/f/web-development/cdn-asset-delivery.md) — Hosts optimized pages and public files on cloud storage served via a global content delivery network. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/README.md))
- [AWS Deployment Adapters](https://awesome-repositories.com/f/web-development/next-js-development/aws-deployment-adapters.md) — Transforms framework build artifacts into packages compatible with AWS Lambda and S3.
- [Internationalization Routing](https://awesome-repositories.com/f/web-development/internationalization-routing.md) — Handles locale detection and manages language-specific URL paths and redirects for multilingual sites. ([source](https://github.com/serverless-nextjs/serverless-next.js/blob/master/CHANGELOG.md))
- [Incremental Static Regenerations](https://awesome-repositories.com/f/web-development/static-page-construction/incremental-static-regenerations.md) — Updates cached pages on demand after deployment to maintain content freshness. ([source](https://github.com/serverless-nextjs/serverless-next.js#readme))
