Next AWS CloudFront
Compat layer between next.js serverless page and CloudFront => Lambda@Edge.
Lambda@Edge event structure documentation can be found here.
Installation
npm install next-aws-cloudfront
Usage
const cloudFrontCompat = ;const page = ; moduleexportsrender = async { const req res responsePromise = ; page; return responsePromise;};