Using a custom domain with GitHub Pages
It took far too long to work out how to do this on the GitHub help pages...
- I've only tested for personal/user domain i.e. the doc root for
- You've already have an
A(APEX) record for your existing site.
- You've already got a
CNAMErecord that points to the
- Enable custom domain in your repository (settings).
- Update your
Arecord to point to IP addresses:
22.214.171.124. Pro-tip: Switch your DNS management to cloudflare if you want super fast switch from your old hosting to GitHub.
echo "your-domain-name" > CNAMEin the default branch repo. This will be
sourceif you're doing this for a Cobalt site.