V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
user02ee45c3
V2EX  ›  问与答

github pages+hexo 自定义域名问题,每次 deploy 都要重新设置域名是怎么回事

  •  
  •   user02ee45c3 · 2021-12-08 12:00:39 +08:00 · 636 次点击
    这是一个创建于 906 天前的主题,其中的信息可能已经有所发展或是发生改变。

    每次hexo d之后,自定义域名就失效了,要去仓库的 settings 里重新设置域名,好像是从我强制开启了 https 之后发生的。 _config.yml我就配置了一下这个

    # URL
    ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
    url: https://example.domain
    
    4 条回复    2021-12-08 12:58:26 +08:00
    AoEiuV020CN
        1
    AoEiuV020CN  
       2021-12-08 12:10:01 +08:00
    添加一个文件 CNAME ,内容就是自定义域名,
    ysc3839
        2
    ysc3839  
       2021-12-08 12:50:43 +08:00 via Android
    user02ee45c3
        3
    user02ee45c3  
    OP
       2021-12-08 12:58:20 +08:00
    @AoEiuV020CN 谢谢,已解决
    user02ee45c3
        4
    user02ee45c3  
    OP
       2021-12-08 12:58:26 +08:00
    @ysc3839 谢谢,已解决
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2329 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 105ms · UTC 05:36 · PVG 13:36 · LAX 22:36 · JFK 01:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.