Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epegzz/nextjs-aws-lambda-edge-starter
Starter/Example App for Running Next.js on AWS Lambda@Edge
https://github.com/epegzz/nextjs-aws-lambda-edge-starter
aws aws-lambda aws-lambda-edge claudiajs cloudfront expressjs nextjs reactjs ssr starter-template
Last synced: 14 days ago
JSON representation
Starter/Example App for Running Next.js on AWS Lambda@Edge
- Host: GitHub
- URL: https://github.com/epegzz/nextjs-aws-lambda-edge-starter
- Owner: epegzz
- Created: 2018-03-25T13:45:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-25T14:04:09.000Z (over 6 years ago)
- Last Synced: 2024-10-12T09:39:50.427Z (about 1 month ago)
- Topics: aws, aws-lambda, aws-lambda-edge, claudiajs, cloudfront, expressjs, nextjs, reactjs, ssr, starter-template
- Language: JavaScript
- Size: 1.95 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js AWS Lambda@Edge starter
- Uses aws-serverless-express-edge to make express work with lambda edge
- Uses claudia for deploymentThis is the very first version. Detailed documentation coming soon!
## Development
To run your app locally with HMR enabled, run
`npm run dev`
## Deploying
Deployment is done using claudia. The first time you deploy, run
`npm run deploy`
This will create the file `claudia.js` which stores your lambda API id.
Subsequent deployments are done by running `npm run update`.
## AWS Permissions
Currently, you'll still need to manually add permissions via AWS IAM:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-permissions.html
## AWS Environment Variables
In your AWS Lambda function settings, you'll need to set the environment variable `NODE_ENV` to `production`.