Skip to content

Commit c72c169

Browse files
authored
Merge pull request #23 from sanfrancesco/runtime-notes
Update runtime to latest (and docs)
2 parents 606976f + 077edb8 commit c72c169

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
@@ -162,6 +162,10 @@ You can also sign into AWS and go to CloudFormation and manually remove things.
162162
3. Redirects (301/302 status codes)
163163
* 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
164164

165+
## Updating Node.js runtime
166+
167+
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`
168+
165169
## Troubleshooting
166170

167171
* 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)