搞了一下午总算搞明白为什么了
原文连接: https://www.oneearmouse.com/posts/VuePress-cloudflarepage-conflict.html
太长不看总结:
- VuePress 默认路由系统后缀为.html
- Cloudflare Pages 默认重定向.html 后缀
因此会发生
- 假设正在访问
https://www.oneearmouse.com/posts/VuePress-Migrate.html - 点击登陆 giscus
- 登陆完成后,跳转到
https://www.oneearmouse.com/posts/VuePress-Migrate.html?giscus=xxx - Cloudflare 不支持.html ,308 重定向,到
https://www.oneearmouse.com/posts/VuePress-Migrate?giscus=xxx - VuePress 路由重定向,到
https://www.oneearmouse.com/posts/VuePress-Migrate - 最终,giscus=xxx 的参数在多次跳转后被抛弃了,因此无法登陆
太蠢了,准备把 vuepress 换了或者换回 github page 了