I’m trying to deploy my full MERN project (frontend + backend) on Vercel. The frontend works fine, but the backend is not loading data. I keep getting this error in the console:
GET https://cutomer-management-react-node.vercel.app/api/customers 404 (Not Found)
Backend is built with Express.
Both frontend and backend are in the same repository.
I tried many solutions (adjusting routes, using environment variables, checking CORS), but nothing worked.
I managed to get the frontend working correctly, but the backend still fails.
Repo: https://github.com/Safeya-Yasien/cutomer-management-react-node
Demo: https://cutomer-management-react-node.vercel.app/