Temporarily hosted my blog on
GitHub Pages
and pointed my personal domain to the blog. However, every time I configured theCustom domain
and accessed it successfully, it would eventually return a 404 error without notice. After some investigation, I found that theCustom domain
setting was being reset and becoming invalid after eachhexo deploy
.

- Add a
CNAME
file in thesource
folder of the project, and fill in your domain address in the file. Note that this should be thesource
folder where resources are stored, not thesource
folder under the theme. Additionally, theCNAME
file has no file extension. - After redeploying, there is no need to manually modify the configuration again. ogImage: https://image.coldcoding.top/file/AgACAgQAAyEGAASUgNIDAAOdZ-LLW2SY1yk2VuSGbtbqq3iEFT4AAgPGMRuknBlTlzRoYu-UvNoBAAMCAAN3AAM2BA.jpg