🌜
🌞
next-aws-cloudfront

next-aws-cloudfront

v1.3.1-alpha.1

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

npm install 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,823
Community Interest
2,884
Number of Forks
429

Maintenance

Commits
10/219/220250
Last Commit
Open Issues
200
Closed Issues
700
Open Pull Requests
29
Closed Pull Requests
251

Versions

Versions Released
10/219/2201
Latest Version Released
Jun 24, 2020
Current Tags
latest1.3.1-alpha.1

Dependencies

Dependencies (0)
Dev Dependencies (1)

Contributors

danielcondemarin
danielcondemarin
Commits: 577
dphang
dphang
Commits: 524
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
SarKurd
SarKurd
Commits: 3
stan-sack
stan-sack
Commits: 3
thiagozf
thiagozf
Commits: 3
a14m
a14m
Commits: 3
josephluck
josephluck
Commits: 3
Deadleg
Deadleg
Commits: 3
andrewgadziksonos
andrewgadziksonos
Commits: 3