🌐Custom domain name
Let's say you own the domain name: yourdomain.com
.
If you want poeple to hit your landing page when they query
https://yourdomain.com
orhttps://www.yourdomain.com
,follow the instruction of theApex domain
tab.if you want people to hit your landing page when they query
https://asubdomain.yourdomain.com,
follow the instructions of theSubdomain
tab.
Create theses DNS records (don't forget to replace yourUsername
by your GitHub username and yourdomain.com
by your domain):
If, and only if, your DNS service provider do not support ALIAS
records:
Once your DNS records are available, update your package.json
homepage
field:
This line of your CI workflow will make sure GitHub Pages understands the change.
Commit and push your changes and your are good to go.
You do not need to go to the GitHub Pages config and fill in your custom domain, it will be read from the CNAME file.
Last updated