3.5.0 • Published 3 years ago
@sls-next/next-aws-lambda v3.5.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 @sls-next/next-aws-lambda
Usage
const compat = require("@sls-next/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;
};
3.5.0-alpha.11
3 years ago
3.5.0
3 years ago
3.5.0-alpha.9
3 years ago
3.1.0
3 years ago
2.6.4-alpha.0
3 years ago
2.6.3
4 years ago
2.6.3-alpha.0
4 years ago
2.6.2
4 years ago
2.6.2-alpha.0
4 years ago
2.6.1
4 years ago
2.6.1-alpha.0
4 years ago
2.6.0
4 years ago
2.6.0-alpha.1
4 years ago