Answer the question
In order to leave comments, you need to log in
How to connect react to backend (express) for production?
There is a tutorial on how to start a webpack server for react, give a react proxy and then run the backend part on express here . And in production for react, use the same webpack server? Run a server for the front and for the back?
Answer the question
In order to leave comments, you need to log in
Webpack Dev Server is for development only.
On prod, you can use anything, for example, Nginx or the same express.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question