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

404 when hitting refresh #52

Closed
klase opened this issue Feb 28, 2018 · 3 comments
Closed

404 when hitting refresh #52

klase opened this issue Feb 28, 2018 · 3 comments

Comments

@klase
Copy link

klase commented Feb 28, 2018

After getting everything up and running, I get a 404 on every page after I hit refresh and server rendering kicks in. The console gives me the following error (in this case on the sample page):

Page does not exist: /page/sample-page
Error: Page does not exist: /page/sample-page

@klase klase closed this as completed Mar 1, 2018
@ovidiu-balau
Copy link

How did you fix this?

@klase
Copy link
Author

klase commented Mar 7, 2018

Just make sure to start the dev npm script which starts the custom express server where the routes are defined instead of the default npm script which just runs next start.

@ovidiu-balau
Copy link

That fixed it!

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