2.6.14 • Published 4 years ago

@getjerry/next-aws-lambda v2.6.14

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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("@getjerry/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.6.7

4 years ago

2.6.6

4 years ago

2.6.9

4 years ago

2.6.8

4 years ago

2.6.11

4 years ago

2.6.12

4 years ago

2.6.13

4 years ago

2.6.14

4 years ago

2.6.10

4 years ago

2.6.4

5 years ago

2.6.3

5 years ago

2.6.2

5 years ago