user02ee45c3
V2EX  ›  问与答

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

  •  
  •   user02ee45c3 · Dec 8, 2021 · 1173 views
    This topic created in 1697 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   ·   2955 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 06:30 · PVG 14:30 · LAX 23:30 · JFK 02:30
    ♥ Do have faith in what you're doing.