You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vercel has switched to node 22 being the default version: https://vercel.com/docs/functions/runtimes/node-js/node-js-versions. When attempting to deploy Astro with the serverless vercel adapter, the adapter defaults to version 18, because 20 is the latest known version in SUPPORTED_NODE_VERSIONS. This causes the deployment to fail.
Besides 22 being the default now, version 20 is still supported but hasn't been marked as deprecated yet. I would suggest to continue listing version 20 with { status: 'available' } in SUPPORTED_NODE_VERSIONS.
Happy to send a PR!
What's the expected result?
I should be able to deploy Astro to vercel serverless using node version 22.
Astro Info
Describe the Bug
Vercel has switched to node 22 being the default version: https://vercel.com/docs/functions/runtimes/node-js/node-js-versions. When attempting to deploy Astro with the serverless vercel adapter, the adapter defaults to version 18, because 20 is the latest known version in
SUPPORTED_NODE_VERSIONS
. This causes the deployment to fail.Besides 22 being the default now, version 20 is still supported but hasn't been marked as deprecated yet. I would suggest to continue listing version 20 with
{ status: 'available' }
inSUPPORTED_NODE_VERSIONS
.Happy to send a PR!
What's the expected result?
I should be able to deploy Astro to vercel serverless using node version 22.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-96f9yd?file=package.json
Participation
The text was updated successfully, but these errors were encountered: