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
What do you think about clamping the value to valid versions? So if you build with v22 or v23, v20 will be used as the default for the runtime?
Alternatively, maybe follow the same rules as Vercel does with the engine field? I was originally a bit confused with the invalid runtime error because I assumed those rules would apply (and we have >= 20 in our engines), but Nitro setting the runtime takes precedence.
Additional information
Would you be willing to help implement this feature?
Activity
feat(vercel): clamp runtime config to valid node versions (nitrojs#2819)
fix(vercel): clamp runtime config to valid node versions (nitrojs#2819)
fix(vercel): clamp runtime config to valid node versions (nitrojs#2819)
fix(vercel): clamp runtime config to valid node versions (nitrojs#2819)
pi0x commentedon Sep 7, 2026
Fixed in v3 — the Vercel runtime is now clamped to the versions Vercel actually supports and can be overridden with
vercel.functions.runtime, see https://github.com/nitrojs/nitro/blob/main/src/presets/vercel/utils.ts.Triaged with AI assistance.