redux-webpack-es6-boilerplate icon indicating copy to clipboard operation
redux-webpack-es6-boilerplate copied to clipboard

Routing fails on production build

Open tsi opened this issue 8 years ago • 1 comments

When running npm start and and navigating to, say, http://localhost:3000/some-page I get to the route I defined in routes.js or the default 404. that's good. After building for production with npm run build and serving with npm run build:serve the main http://127.0.0.1:3003/ works but all other routes fail, giving browser 404 - This 127.0.0.1 page can’t be found.

Sorry if I'm missing something obvious.

tsi avatar Nov 10 '16 08:11 tsi

the problem is with http-server. you'll have to find an alternative package such as spa-http-server that will enable you to direct all calls to index.html

do87 avatar Jan 25 '18 13:01 do87