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

fix: Support refresh and livereload in serve when using routerMode history (#132) #165

Closed
wants to merge 1 commit into from
Closed

Conversation

Peksa
Copy link
Contributor

@Peksa Peksa commented Feb 4, 2022

When using docsify serve on a site which uses routerMode: history and you either refresh the page or change the site, triggering a live reload, you usually get a 404.

With this, the node connect server will serve the index file for most requests, using npm package connect-history-api-fallback.

This should solve #132

@sy-records
Copy link
Member

@Peksa
Copy link
Contributor Author

Peksa commented Feb 5, 2022

Committed the package-lock.json file and amended the commit. Since I sillily deleted my fork I had to create a new PR: #166

@Peksa Peksa closed this Feb 5, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants