my file structure
Shell
delpoy node express back-end to vercel
- upload your code to github
- go to vercel dashboard
Framework PresetchooseotherRoot Directorychooseapi- add environment variables
- ENV_DATA
- PORT
- Deploy
add vercel.json to your node app (this is vital)
- vercel host support
.jsand.tsfiles, so we could just use it - also use full file name, use
src/index.tsinstead ofsrc
JSON
delpoy vite react front-end to vercel
- upload your code to github
- go to vercel dashboard
Framework PresetchooseviteRoot Directorychooseclient- add environment variables
- VITE_API_URL
- Deploy