Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing fails on production build #39

Open
tsi opened this issue Nov 10, 2016 · 1 comment
Open

Routing fails on production build #39

tsi opened this issue Nov 10, 2016 · 1 comment

Comments

@tsi
Copy link

tsi commented Nov 10, 2016

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.

@do87
Copy link

do87 commented Jan 25, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants