Skip to content

Nitro Builds and Serves on Node.js 22.x Despite Vercel Project Setting Configured to 24.x #3965

Closed

Description

@jvitormelo

Environment

Im deployin a tanstack start project to Vercel

Here is my vite.config

import { defineConfig } from "vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import viteReact from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import { nitro } from "nitro/vite";

export default defineConfig({
  server: {
    port: 3000,
  },
  envPrefix: ["VITE_", "NEXT_PUBLIC_"],
  resolve: {
    tsconfigPaths: true,
  },
  plugins: [
    tailwindcss(),
    tanstackStart({
      srcDirectory: "src",
      router: {
        routesDirectory: "routes",
        routeFileIgnorePrefix: "-",
      },
    }),
    nitro({ preset: "vercel", traceDeps: ['pg'], }),
    viteReact(),
  ],
});

Package

 "nitro": "npm:nitro-nightly@latest",

Reproduction

Deploy a nitro app (tanstack start for example) in Vercel and set in the build config node 24.

Describe the bug

Nitro is not using the Vercel node version that I configured

Additional context

Image Image

Logs

Activity

  1. added
    pending triage
    on Jan 21, 2026
  2. added and removed
    pending triage
    on Jan 21, 2026
  3. RihanArfan commented on Feb 24, 2026

    @RihanArfan
    Member

    Resolved by #3967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions