So I’ve been trying to deploy my backend application to vercel
My backend application is written in ExpressJS and mongodb is used for database
But I am getting some errors
Like when I put routes in my vercel.json file, my route for pdfs doesn’t work and if I use rewrite in my vercel.json file, my routes other than that of pdfs doesn’t work
Suggest me a how should I phrase the vercel.json so that it works for both
I tried a lot things like checking up on youtube, using AI. But nothing really worked
Suggest me a how should I phrase the vercel.json so that it works for both
Himanshu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.