Skip to content

Conversation

@elliott-with-the-longest-name-on-github
Copy link
Contributor

Closes #14981. Vercel just added support for Node 24, and it's already the new default.

@changeset-bot
Copy link

changeset-bot bot commented Nov 25, 2025

🦋 Changeset detected

Latest commit: 61e056a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/adapter-vercel Minor

Not sure what this means? Click here to learn what changesets are.

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

@elliott-with-the-longest-name-on-github elliott-with-the-longest-name-on-github merged commit e295db5 into main Nov 25, 2025
25 checks passed
@elliott-with-the-longest-name-on-github elliott-with-the-longest-name-on-github deleted the elliott/node-24-vercel branch November 25, 2025 19:58
@github-actions github-actions bot mentioned this pull request Nov 25, 2025
if (!valid_node_versions.includes(major)) {
throw new Error(
`Unsupported Node.js version: ${process.version}. Please use Node 20 or 22 to build your project, or explicitly specify a runtime in your adapter configuration.`
`Unsupported Node.js version: ${process.version}. Please use Node ${valid_node_versions.slice(0, -1).join(', ')} or ${valid_node_versions.at(-1)} to build your project, or explicitly specify a runtime in your adapter configuration.`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, you can use Intl.ListFormat for automatic string enumeration from a list!

// (initiate the formatter as early and globally as possible; their creation is quite heavy AFAIK)
const formatter = new Intl.ListFormat("en", {
  type: "disjunction"
});

console.log(formatter.format(valid_node_versions)); // "20, 22, or 24"

(The Intl namespace is really awesome, I love it)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah thanks, I totally forgot about this!

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.

Adapter Vercel does not support Node.js v24

4 participants