Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 4

Github forgets about my custom domain every time I update the website

Solved! Go to Solution.
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?
3 Replies
Solution
Copilot Lvl 3
Message 2 of 4

Re: Github forgets about my custom domain every time I update the website

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.

Ground Controller Lvl 1
Message 3 of 4

Re: Github forgets about my custom domain every time I update the website


@RyanZim wrote:

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.


 

Moderator
Message 4 of 4

Re: Github forgets about my custom domain every time I update the website

@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?

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!