FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Support refresh and livereload in serve when using routerMode history by Peksa · Pull Request #166 · docsifyjs/docsify-cli · GitHub

fix: Support refresh and livereload in serve when using routerMode history - #166

Merged
sy-records merged 1 commit into
docsifyjs:masterfrom
Peksa:feat/history-api
Feb 14, 2022
Merged

fix: Support refresh and livereload in serve when using routerMode history#166
sy-records merged 1 commit into
docsifyjs:masterfrom
Peksa:feat/history-api

Conversation

Peksa commented Feb 5, 2022

Copy link
Copy Markdown
Contributor

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 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. Thank you!

sy-records requested a review from a team February 8, 2022 00:09
sy-records merged commit 625c9f2 into docsifyjs:master Feb 14, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL