xugaoyi / vuepress-theme-vdoing

🚀一款简洁高效的VuePress知识管理&博客(blog)主题

Home Page:https://doc.xugaoyi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[提问]: 关于githubpages 绑定个人域名base配置的问题

17661977890 opened this issue · comments

commented

问题描述

我在绑定个人域名之前,部署到github pages,因为我是单独建的仓库, 使用 username.github.io/sm-blog 访问,当然也配置了base:/sm-blog/ 此时访问是ok的。
但是我在开始关联个人域名的时候,即配置如下:
1、在云平台配置cname dns解析 xx.xxx.com(二级子域名) 解析到 username.github.io
2、在github pages 配置了custme domain为 xx.xxx.com(二级子域名)
此时访问xx.xxx.com 发现样式全部404,经过排查,发现多了一个/sm-blog的路径,于是尝试把项目中的base:/sm-blog/ 配置去掉重新部署,就可以了。
为什么会这样?请帮忙解答谢谢

commented

问题已在qq群中得到解惑