Saturday 20 May 2017

Deploying create-react-app express api to heroku

I have an app that uses a React/Redux client (generated by create-react-app) and it communicates with a Node/Express api. When I run this during development, it works perfectly.

I just deployed to Heroku for the first time however, and only the client side of my app is working. I get error messages in the console that the api routes return a 404.

Any ideas on how to solve this? I think it must be something simple like adding a script to package.json.



via JohnSnow

No comments:

Post a Comment