Thursday, 22 March 2018

How to configure React app with Node backend on Heroku ?

I've created a React app (used CRA) with Node backend for a side project. I followed this tutorial to configure the project. Now I need to host it on Heroku. I'm having some issues with hosting.I usedconst port = process.env.PORT || 5000; as the port in Node server and configured it as proxy in package.json in Client (React App). But how can I serve React App when it's hosting on server ? What should I change in package.json in React app ?

Submitted March 22, 2018 at 06:36PM by sp3co92

No comments:

Post a Comment