How To Deploy Node.js Server to Vercel | Node.js Tutorial
HTML-код
- Опубликовано: 6 сен 2024
- Learn how you can deploy your Node.js server to Vercel without issues. Fix node.js not deploying to Vercel.
vercel.json file content👇🏻
{
"version": 2,
"builds": [
{
"src": "./index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
]
}
I have figuring this out for few days and this works, thanks man!
crazy helpful 🙏🙏 tnx
Glad I was able to help :)
what should the package.json look like?
The package.json is the default, you don't have to modify it. You just have to add and modify the vercel.json file.