user02ee45c3
V2EX  ›  问与答

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

  •  
  •   user02ee45c3 · Dec 8, 2021 · 1390 views
    This topic created in 1800 days ago, the information mentioned may be changed or developed.

    每次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 replies  •  2021-12-08 12:58:26 +08:00
    AoEiuV020CN
    AoEiuV020CN
    Dec 8, 2021
    1
    添加一个文件 CNAME ,内容就是自定义域名,
    user02ee45c3
    user02ee45c3
    OP
    Dec 8, 2021
    3
    @AoEiuV020CN 谢谢,已解决
    user02ee45c3
    user02ee45c3
    OP
    Dec 8, 2021
    4
    @ysc3839 谢谢,已解决
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2448 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:26 · PVG 20:26 · LAX 04:26 · JFK 07:26
    ♥ Do have faith in what you're doing.