AWS just released Node.js 12 for serverless Lambda functions, and we’re making that version the default for all new sites created from today (Dec 4, 2019) forward. Sites created before today can upgrade by setting a
AWS_LAMBDA_JS_RUNTIME environment variable to
You can find out more about the benefits of Node.js 12 in our blog announcement.
Also note that since Node.js 8 reaches end of life at the end of this year, AWS will stop deploying new functions on version 8 on January 6, 2020. You can find out more about deprecation in the docs.
(Pro tip: you can test how your functions handle Node.js 12 locally by updating your Node.js version then running your functions using Netlify Dev.)