Repository navigation
Disable SPA behaviour #1434
Replies: 3 comments
|
TBH, VuePress isn't designed for this. So there won't be a pleasant way doing this. |
0 replies
|
Maybe you can try to replace all |
0 replies
|
Thanks for the suggestion. In the end I switched to VitePress and used https://vitepress.dev/guide/mpa-mode |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've implemented a Cloudflare Worker to provide basic auth protection to a few routes in my docs, however the SPA behaviour of the application will bypass this because clicking on a link doesn't send a request to the server.
Do I have any straightforward options to disable the SPA behaviour vuepress-next? I'm happy with a quick hack to simply make every request route via the server.
I've experimented with both
shouldPreloadandshouldPrefetch, but my understanding of these is that they mainly affect the way<a>tags get various attributes on them.All reactions