Since Heroku
has stopped with free tier vercel
has become the goto for deploying your backend.
In your Node app
make sure vercel.json
is present in root of your node project.
vercel.json
_14{_14 "builds": [_14 {_14 "src": "./index.js",_14 "use": "@vercel/node"_14 }_14 ],_14 "routes": [_14 {_14 "src": "/(.*)",_14 "dest": "/index.js"_14 }_14 ]_14}
Setup of node
app in vercel
Sign in to https://vercel.com/login
@ragavkumarv
swipe to next ➡️