Skip to content

Node 24 on Vercel not fully supported #15115

@Raanelom

Description

@Raanelom

Astro Info

Astro                    v5.16.6
Node                     v24.12.0
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

When running vercel build for an Astro-project with node 24, the Astro Vercel adapter warns about Vercel not being able to run node 24 yet. However, this is supported by Vercel. It was confirmed that there was an oversight in the Astro Vercel adapter, where these versions are hardcoded.

         [WARN] [@astrojs/vercel] 
build:   The local Node.js version (24) is not supported by Vercel Serverless Functions.
build:   Your project will use Node.js 22 as the runtime instead.
build:   Consider switching your local version to 22.

See https://discord.com/channels/830184174198718474/1457747873734328505 for more context.

What's the expected result?

Vercel supports node 24, and Astro as well. I guess the adapter should be able to support Node 24 too, as the docs state that it supports the same versions as Vercel does.

Link to Minimal Reproducible Example

NB: this link is just here because it's mandatory, but I wasn't able to set node to 24 and install the Vercel adapter. Just ignore this example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal?file=README.md

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P2: nice to haveNot breaking anything but nice to have (priority)pkg: vercelRelated to Vercel adapter (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions