There is an application on react in it using react router.
ReactDOM.render( <Router history={hashHistory}> <Route path="/" component={Layout}> <Route path="/about" component={About} /> </Route> </Router> , document.getElementById('app') ); when I work in webpack-dev-server, everything is fine with the historyApiFallback option, when I open the same code via puma on rails 5, the router works if the index.html page has already been loaded. If you go to http://site.heroku.com/about gives an error 404 how to overcome it?