user02ee45c3
V2EX  ›  问与答

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

  •  
  •   user02ee45c3 · Dec 8, 2021 · 1067 views
    This topic created in 1641 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
        1
    AoEiuV020CN  
       Dec 8, 2021
    添加一个文件 CNAME ,内容就是自定义域名,
    ysc3839
        2
    ysc3839  
       Dec 8, 2021 via Android
    user02ee45c3
        3
    user02ee45c3  
    OP
       Dec 8, 2021
    @AoEiuV020CN 谢谢,已解决
    user02ee45c3
        4
    user02ee45c3  
    OP
       Dec 8, 2021
    @ysc3839 谢谢,已解决
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2904 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 13:48 · PVG 21:48 · LAX 06:48 · JFK 09:48
    ♥ Do have faith in what you're doing.