error: The following Serverless Functions contain an invalid "runtime" when deploying
jorubikss opened this issue · comments
Question
ive been trying to deploy a php project but i get this error: The following Serverless Functions contain an invalid "runtime"
this is the complete error i get when deploying php in vercel : Error: The following Serverless Functions contain an invalid "runtime":
- api/index (nodejs18.x)
- api/vendor/autoload (nodejs18.x)
- api/vendor/composer/ClassLoader (nodejs18.x)
- api/vendor/composer/InstalledVersions (nodejs18.x)
- api/vendor/composer/autoload_classmap (nodejs18.x)
- api/vendor/composer/autoload_namespaces (nodejs18.x)
- api/vendor/composer/autoload_psr4 (nodejs18.x)
- api/vendor/composer/autoload_real (nodejs18.x)
- api/vendor/composer/autoload_static (nodejs18.x)
- api/vendor/composer/installed2 (nodejs18.x)
- api/vendor/composer/platform_check (nodejs18.x)
- api/vendor/orhanerday/open-ai/src/OpenAi (nodejs18.x)
- api/vendor/orhanerday/open-ai/src/Url (nodejs18.x)
here is vercel.json
{
"functions": { "api/**/*.php": { "runtime": "vercel-php@0.7.0" } } }
help you for the help, im new with deploys on vercel