RE: React deployment

You are viewing a single comment's thread from:

React deployment

in dsource •  7 years ago 

You're going to want to include a static.json file when deploying to Heroku:

{
  "root": "build/",
  "clean_urls": false,
  "routes": {
    "/**": "index.html"
  }
}

Other than that Heroku should just auto-detect that it is a static app.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Here's an example repo of one that is deployed to Heroku: https://github.com/marianserna/wanderers-frontend