nitrojs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.build
MIT License
6.16k stars 507 forks source link

fix(vercel): clamp runtime config to valid node versions #2824

Open cjpearson opened 1 day ago

cjpearson commented 1 day ago

๐Ÿ”— Linked issue

2819

โ“ Type of change

๐Ÿ“š Description

This change ensures that only supported node versions will be used as the default runtime value for the vercel preset. If a non-LTS version of node is used, it will use the previous LTS. If the version is outside the range supported by vercel, it will be clamped to the min/max of the supported range.

The runtime value can still be manually overridden as needed.

๐Ÿ“ Checklist