2.5.1-alpha.0 • Published 5 years ago
next-aws-lambda v2.5.1-alpha.0
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 = require("next-aws-lambda");
const page = require(".next/serverless/pages/somePage.js");
// using callback
module.exports.render = (event, context, callback) => {
compat(page)(event, context, callback);
};
// using async promise
module.exports.render = async (event, context) => {
const responsePromise = compat(page)(event, context); // don't pass the callback parameter
return responsePromise;
};
2.5.1-alpha.0
5 years ago
2.5.0
5 years ago
2.5.0-alpha.0
5 years ago
2.4.1
5 years ago
2.4.0
5 years ago
2.4.0-alpha.0
5 years ago
2.3.8
5 years ago
2.3.7
5 years ago
2.3.6
5 years ago
2.3.5
5 years ago
2.3.4
6 years ago
2.3.2
6 years ago
2.0.5-alpha.0
6 years ago
2.0.0-alpha.0
6 years ago