🌜
🌞
thrive-next-aws-cloudfront

thrive-next-aws-cloudfront

v1.5.0

Compat layer for running next.js apps in [email protected]

npm install thrive-next-aws-cloudfront

README

Next AWS CloudFront

Compat layer between next.js serverless page and CloudFront => [email protected]

[email protected] event structure documentation can be found here.

Installation

npm install next-aws-cloudfront

Usage

const cloudFrontCompat = require("next-aws-cloudfront");
const page = require(".next/serverless/pages/somePage.js");

module.exports.render = async (event, context) => {
  const { req, res, responsePromise } = cloudFrontCompat(event.Records[0].cf);
  page.render(req, res);
  return responsePromise;
};

General

License
ISC
Typescript Types
Built-in
Tree-shakeable
No

Popularity

GitHub Stargazers
3,839
Community Interest
2,980
Number of Forks
431

Maintenance

Commits
11/2110/220200
Last Commit
Open Issues
201
Closed Issues
700
Open Pull Requests
29
Closed Pull Requests
251

Versions

Versions Released
11/2110/2201
Latest Version Released
Aug 19, 2020
Current Tags
latest1.5.0

Dependencies

Dependencies (0)
Dev Dependencies (1)

Contributors

danielcondemarin
danielcondemarin
Commits: 577
dphang
dphang
Commits: 557
jvarho
jvarho
Commits: 42
lone-cloud
lone-cloud
Commits: 14
kirkness
kirkness
Commits: 9
jlaramie
jlaramie
Commits: 9
barrysteyn
barrysteyn
Commits: 8
mekwall
mekwall
Commits: 4
thiagozf
thiagozf
Commits: 3
thchia
thchia
Commits: 3
mertyildiran
mertyildiran
Commits: 3
simonireilly
simonireilly
Commits: 3
SarKurd
SarKurd
Commits: 3
andrewgadziksonos
andrewgadziksonos
Commits: 3
a14m
a14m
Commits: 3