Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] updated Netlify adapter documentation to include AWS_LAMBDA_JS_RUNTIME (closes #2687) #2715

Closed
wants to merge 3 commits into from

Conversation

accuser
Copy link

@accuser accuser commented Oct 31, 2021

Netlify defaults to using Node.js 12 as the runtime for JavaScript functions, but this version is no longer supported by SvelteKit, as noted in #2687. I have added the AWS_LAMBDA_JS_RUNTIME setting to the documentation for the Netlify adapter.

@changeset-bot
Copy link

changeset-bot bot commented Oct 31, 2021

⚠️ No Changeset found

Latest commit: 2509e03

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@benmccann
Copy link
Member

I wonder if rather than updating the docs, we can use Netlify's framework detector to specify Node 14 if not otherwise specified?

https://github.com/netlify/framework-info/blob/main/src/frameworks/svelte-kit.json

@benmccann
Copy link
Member

@benmccann
Copy link
Member

benmccann commented Nov 1, 2021

PR for framework-info here: netlify/framework-info#553

Let's leave this one open for the time being until we get a response on that one and test it out

@accuser
Copy link
Author

accuser commented Nov 2, 2021

PR for framework-info here: netlify/framework-info#553

Let's leave this one open for the time being until we get a response on that one and test it out

This makes sense until the PR for the Netlify framework detector is accepted.

@ascorbic
Copy link
Contributor

ascorbic commented Nov 2, 2021

Unfortunately this won't work right now, but we're working on it, and nor will the framework detection code. I made a mistake when I added the Nuxt env vars so you can't use that approach. They're actually only used when running netlify dev, which I misunderstood. The good news is that we will very shortly be switching the default Lambda runtime to 14, and this issue has moved that up the priority list.

The current correct solution is to set AWS_LAMBDA_JS_RUNTIME in the site UI, not in the toml.

@benmccann
Copy link
Member

Oops, I missed the comment that this won't work: #2715 (comment)

Closing as a result of that comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants