DEV Community

Discussion on: Running React and Node.js in one shot with concurrently!

Collapse
 
zullubalti profile image
Zullu

Can you show how can someone serve the static build from express server.
In some automatic way (not just copy/paste the build folder in the public folder of express)

Thread Thread
 
numtostr profile image
Vikas Raj

You do need to serve the static build from the server.

Just serve the build files when NODE_ENV==="production"

The automatic part is that the copy/paste part will be handled by your docker image.