Disable SPA behaviour #1434
Replies: 3 comments
-
TBH, VuePress isn't designed for this. So there won't be a pleasant way doing this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Maybe you can try to replace all |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the suggestion. In the end I switched to VitePress and used https://vitepress.dev/guide/mpa-mode |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
shouldPreload
andshouldPrefetch
, but my understanding of these is that they mainly affect the way<a>
tags get various attributes on them.Beta Was this translation helpful? Give feedback.
All reactions