AWS Lambda now supports Node.js 12

https://aws.amazon.com/ru/about-aws/whats-new/2019/11/aws-lambda-supports-node-js-12/

Can we start using it?

netlify.toml:

environment = { AWS_LAMBDA_JS_RUNTIME = "nodejs12.x" }

This should work.

If it doesn’t. Set the AWS_LAMBDA_JS_RUNTIME var in your site setting instead of the toml file.

Let me know how it goes :smiley:

2 Likes

Worked, but I had to add some dummy comment into function file to trigger its reupload.
I don’t know a better way…

1 Like

Hi, @web2033, thank you for pointing out that the function’s hash must change to trigger a new deploy and how you achieved this (by adding a comment).