MERN stack server routes not accessible on production

I am building a mern stack app.
It works in development but in production it does not fetch data from server.
Possibly server is not running or I dont know for sure.
I just want to make sure that a /home request to server show the message,
but it is showing the error 404 not found for server data.

This is Github repo: Link

and this is its live server running on Vercel: LInk

If your client side making http request to localhost while in production. Then the problem you mentioned will occur. Cause you need to make sure that the client side is making request to the hostname that is being generated at the time of hosting of your application in production.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.