-
It resets to the default xxx.github.io URL every time I update the site. I have to input the custom domain on the repository settings every single time I update the website. Any advice? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
When you configure the custom domain in the settings, it adds a CNAME file to the pages root. You must be force-pushing when you update your site. If you add a CNAME file containing the custom domain name to your pages root (or pull in the commit GH makes when you set the custom domain in Settings), you shouldn’t have this problem. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@flarsystem It looks like you started a comment here with a quote, but then the rest of your content didn’t come through. Was there more you meant to add here? |
Beta Was this translation helpful? Give feedback.
-
That is insane as any force push, even on a feature branch will break the entire website. Even if the default branch is not touched and the correct One can easily conclude that gh-pages cannot really be considered reliable as it can suddenly vanish. |
Beta Was this translation helpful? Give feedback.
-
Hello I have question |
Beta Was this translation helpful? Give feedback.
When you configure the custom domain in the settings, it adds a CNAME file to the pages root. You must be force-pushing when you update your site. If you add a CNAME file containing the custom domain name to your pages root (or pull in the commit GH makes when you set the custom domain in Settings), you shouldn’t have this problem.