vercel-community / php

🐘 PHP Runtime for ▲ Vercel Serverless Functions (support 7.4-8.3)
https://php.vercel.app
MIT License
1.21k stars 268 forks source link

fix: autodetect nodejs runtime #539

Closed QuiiBz closed 3 months ago

QuiiBz commented 3 months ago

Closes https://github.com/vercel-community/php/issues/531 Closes https://github.com/vercel-community/php/issues/534 Relates to https://github.com/vercel-community/php/issues/504#issuecomment-2024215402

Vercel recently shipped Node.js 20 GA, which means the default Node.js version for new projects is Node.js 20.

However, this project hardcodes the runtime to be nodejs18.x, instead of auto-detecting the user-defined Node.js version to set the correct runtime.

aungchanpyae33 commented 3 months ago

hey pls see and fix this error, i cant deploy on vercel with runtime error

QuiiBz commented 3 months ago

hey pls see and fix this error, i cant deploy on vercel with runtime error

In the meantime, you can follow https://vercel.slack.com/archives/C06UGDJKVRA/p1713213106626339

f3l1x commented 3 months ago

Merged, thank you @QuiiBz