Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@contentco/next-aws-lambda

danielcondemarin34MITdeprecated2.6.5

this package has been deprecated

Compat layer between next.js serverless page and AWS Lambda

serverless, nextjs, lambda, next, api gateway

readme

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 @contentco/next-aws-lambda

Usage

const compat = require("@contentco/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;
};

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.6.5 (2020-09-05)

Note: Version bump only for package @contentco/next-aws-lambda

2.6.4 (2020-09-05)

Note: Version bump only for package @contentco/next-aws-lambda

2.6.3 (2020-09-05)

Note: Version bump only for package @contentco/next-aws-lambda

2.6.2 (2020-09-05)

Note: Version bump only for package @contentco/next-aws-lambda

2.6.2-alpha.0 (2020-08-14)

Note: Version bump only for package @contentco/next-aws-lambda

2.6.1 (2020-08-01)

Note: Version bump only for package @contentco/next-aws-lambda

2.6.1-alpha.0 (2020-07-30)

Note: Version bump only for package @contentco/next-aws-lambda

2.6.0 (2020-07-11)

Note: Version bump only for package @contentco/next-aws-lambda

2.6.0-alpha.1 (2020-06-29)

Note: Version bump only for package @contentco/next-aws-lambda

2.6.0-alpha.0 (2020-06-29)

Bug Fixes

  • serverless-component: don't overwrite the cloudfront default.forward config (#460) (12da1de)

Features

  • lambda-at-edge: create new package with Lambda@Edge builder and handlers (94f0a29)
  • next-aws-lambda,next-aws-cloudfront: fix status code and body bugs (#437) (7291f83)

2.5.1-alpha.0 (2020-06-24)

Bug Fixes

  • serverless-component: don't overwrite the cloudfront default.forward config (#460) (12da1de)

2.5.0 (2020-06-16)

Note: Version bump only for package next-aws-lambda

2.5.0-alpha.0 (2020-06-12)

Features

  • next-aws-lambda,next-aws-cloudfront: fix status code and body bugs (#437) (7291f83)

2.4.1 (2020-05-06)

Note: Version bump only for package next-aws-lambda

2.4.0 (2020-04-25)

Note: Version bump only for package next-aws-lambda

2.4.0-alpha.0 (2020-04-23)

Features

  • lambda-at-edge: create new package with Lambda@Edge builder and handlers (94f0a29)

2.3.8 (2020-03-29)

Note: Version bump only for package next-aws-lambda

2.3.7 (2020-03-29)

Note: Version bump only for package next-aws-lambda

2.3.6 (2020-03-22)

Bug Fixes

2.3.5 (2020-02-29)

2.3.4 (2019-08-27)

2.3.2 (2019-08-14)

2.0.5-alpha.0 (2019-05-26)

2.0.0-alpha.0 (2019-05-15)

Note: Version bump only for package next-aws-lambda