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
import
to connect to your desired repoEnvironments Variables
and provide your secretsAdd
Continue to Dashboard
Vist
to get your deployed Node URL
@ragavkumarv
swipe to next ➡️