Skip to content

当博客部署在github pages时,如何在仓库名不为username.github.io的仓库中正确部署? #377

Answered by fanghsiu
Shinya754 asked this question in Q&A
Discussion options

You must be logged in to vote

吾有三策:上氪金,中改名,下配置。(~ ̄▽ ̄)~

  1. 花钱买个域名
  2. 改仓库名 Shinya754.github.io -> hexo, re-blog -> Shinya754.github.io
  3. 如下,valaxy 基于 vite,但注意 public 下的文件不受此设置影响。https://vitejs.cn/vite3-cn/config/shared-options.html#base
    https://vitejs.cn/vite3-cn/config/shared-options.html#publicdir
// valaxy.config.ts
vite: {
  base: '/re-blog/'
}

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Shinya754
Comment options

@Shinya754
Comment options

Comment options

You must be logged in to vote
1 reply
@Shinya754
Comment options

Answer selected by Shinya754
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants