Skip to content

Commit 077edb8

Browse files
committed
Update runtime to latest (and docs)
Fixes #22
1 parent 589b052 commit 077edb8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ You can also sign into AWS and go to CloudFormation and manually remove things.
160160
3. Redirects (301/302 status codes)
161161
* if you use `<meta name="prerender-status-code" content="301">` to initiate a redirect, your CloudFront TTL must be zero, otherwise CloudFront will cache the body/response and return status code 200 with the body from the redirected path
162162

163+
## Updating Node.js runtime
164+
165+
Simply update [serverless.yaml](./serverless.yml) to the [latest or whatever you prefer](https://docs.aws.amazon.com/lambda/latest/dg//lambda-runtimes.html) and re-deploy: `make deploy`
166+
163167
## Troubleshooting
164168

165169
* Read through the console output from the `make deploy` command and look for errors

serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ service: Lambda-Edge-Prerendercloud
99

1010
provider:
1111
name: aws
12-
runtime: nodejs8.10
12+
runtime: nodejs12.x
1313
region: us-east-1
1414
memorySize: 128
1515
role: LambdaEdgeRole

0 commit comments

Comments
 (0)