DEV Community

Discussion on: Using Create-React-App with Express

Collapse
 
kingdopamine profile image
kingdopamine

This has been driving me insane, stayed up until 4 in the morning after 7 hours of pulling my hair out and I am still struggling today.

localhost/8080/pong works perfectly fine. As soon as run build and deploy to my web server the response is:
404 Not Found

I presume this is do with "just run the production build npm run build and serve your app from localhost:8080"

The casual nature of this comment makes me believe this is an obvious thing to be able to do, yet I have no idea how to change the server from localhost:3000 to local host 8080 when I run build.

I'm not even sure if this is what the issue is either.