W
W
WizardW2019-06-30 21:00:57
Express.js
WizardW, 2019-06-30 21:00:57

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

1 answer(s)
A
Anton Spirin, 2019-06-30
@WizardW

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 question

Ask a Question

731 491 924 answers to any question