0

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)
  1. Backend is built with Express.

  2. Both frontend and backend are in the same repository.

  3. I tried many solutions (adjusting routes, using environment variables, checking CORS), but nothing worked.

  4. 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/

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.