API Gateway Lambda Compat
Compat layer between next.js serverless page and API Gateway => Lambda Proxy Integration.
Lambda Proxy Integration event structure documentation can be found here.
Installation
npm install next-aws-lambda
Usage
const compat = ;const page = ; // using callback moduleexports { event context callback;}; // using async promise moduleexportsrender = async { const responsePromise = event context; // don't pass the callback parameter return responsePromise;};