React Astro Typescript Project deployment giving runtime error

I am getting the following error everytime I try to deploy my React Astro Typescript project and the build itself fails.
“The following Serverless Functions contain an invalid “runtime”: - _render (nodejs18.x)”
I am able to build successfully on my local.

I have verified NodeJs Version to be v.18.x

Below is my vercel.json file

{
“functions”: {
“src/pages/api/**/*.js”: {
“runtime”: “nodejs18.x”
}
}
}

Have tried out quite a few alternatives but it is still failing in the build stage itself.
URL: https://clinic-website-5p4mgg5ta-tabishs-projects.vercel.app/

Hey Tabish! Welcome to the Vercel Community :smile:

Appreciate your patience!

Could you remove the vercel.json file from your project? Astro projects typically don’t require a custom Vercel configuration, and the presence of this file might be causing conflicts.

Did that. but it didn’t change anything.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.