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.
React deployment
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.
Here's an example repo of one that is deployed to Heroku: https://github.com/marianserna/wanderers-frontend
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit