Setting up GitHub Pages with a Namecheap .dev domain
I ran into some trouble trying to get GitHub Pages to work with this domain. I was unable to enforce HTTPS (a requirement for .dev domains) resulting in the site being inaccessible due to an SSL error. Upon further investigation it appeared the problem was twofold: firstly the site referenced assets over HTTP and secondly I needed to create A records pointing to the IP addresses for GitHub Pages:
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
Upon solving these problems I was able to get GitHub Pages to enforce HTTPS but actually accessing the site still gave me an SSL error. The culprit turned out to be the CNAME record that Namecheap creates by default for their parking page because it’s only available over HTTP! Deleting it got everything working.
TL;DR: Delete the CNAME record pointing your domain to Namecheap’s parking page.