dotku
(Dotku)
September 22, 2024, 10:21am
1
{
"version": 2,
"functions": {
"api/**/*.js": {
"runtime": "nodejs@20.x"
}
},
"routes": [
{
"src": "/(.*)",
"dest": "/bin/www"
}
]
}
I got error
Error: Function Runtimes must have a valid version, for example `now-php@1.0.0`.
pawlean
(Pauline P. Narvas)
September 26, 2024, 12:07pm
2
Hi, @dotku ! Welcome to the Vercel Community.
Thanks for being patient with us
The error you’re encountering, “Function Runtimes must have a valid version, for example now-php@1.0.0
,” indicates that the runtime version specified in your vercel.json
file is not in the correct format.
Could you try this?
{
"version": 2,
"functions": {
"api/**/*.js": {
"runtime": "vercel/node@20.x"
}
},
"routes": [
{
"src": "/(.*)",
"dest": "/bin/www"
}
]
}
Let us know how you get on!
system
(system)
Closed
October 26, 2024, 12:07pm
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.