#React/Node E-Commerce project wont deploy on Vercel

10 messages · Page 1 of 1 (latest)

woven dagger
#

So I decided to deploy my React/Node E-Commerce project from this specific repo which has the website divided into the Frontend and Backend folders. https://github.com/AlexFitFlow/E_Commerce

From there I deployed the project separately on Vercel
The Frontend here https://e-commerce-frontend-tan.vercel.app/
The Backend here https://e-commerce-backend-roan.vercel.app/
I added the environmental keys to both.
The frontend is working just fine but it is the backend that is not connecting for some reason.

The backend brings up a “404: NOT_FOUND” message and the build logs do not show a specific issue? So I am wondering why it is not live?

Im using thunder client in VS Code instead of Postman and it shows the front end link is working fine and the backend link is not working. Does anyone have experience deploying with Vercel. Or knowledgeable enough on deployment to know why the backend is not live? If so, can you please DM me so this does not get lost in the chat.

GitHub

Contribute to AlexFitFlow/E_Commerce development by creating an account on GitHub.

quasi elk
#

LOL silly bot...

#

without reading anything at those links, you shouldn't be "deploying" a react front-end.. you should be "building" it and "serving" it from your back-end.

woven dagger
#

That is the issue I am having. I am trying to build it properly so my website can be live

quasi elk
#

stop trying to "deploy" your development server.

woven dagger
#

What do you mean expose public as the base route?

quasi elk
#

I linked the exact code showing what I meant