Thanks for node 18 support in functions!
I’m currently writing a template repository (to be deployed via the Deploy to Netlify button) and I plan to use
fetch a lot, so I need to set some env vars. I tried using this in
[context.production.environment] AWS_LAMBDA_JS_RUNTIME = "nodejs18.x" NODE_NO_WARNINGS = "1"
but it does not work. I’ve looked around and I see Are environment variables specified in netlify.toml accessible in functions? - #2 by hrishikesh and Defining environment variables for git LFS in netlify.toml - #2 by luke and Can I set `AWS_LAMBDA_JS_RUNTIME` without having to use the UI which say “no”
Other than setting them in
[template.environment], is there a way to pre-define those variables for users?
netlify-plugin-inline-functions-env will probably not work as the vars are not used in code, so inlining is useless.