Skip to content

Commit 0e7042e

Browse files
committed
Create CNAME to configure GitHub Pages
Create CNAME file to configure GitHub Pages, so GitHub recognizes "sfleet.dev" as the name for our website. Note that updating this file in a git commit will *update* what GitHub shows in as repository / Pages / Custom domain, and GitHub will automatically commit a change to this file whenever you change the setting in the Web UI. Also note GitHub special-cases the "www" subdomain. If it finds a www subdomain being a properly-configured CNAME, it will accept both the apex domain [sfleet.dev] and the subdomain [www.sfleet.dev]: https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain-and-the-www-subdomain-variant --- If you are using an apex domain as your custom domain, we recommend also setting up a www subdomain. If you configure the correct records for each domain type through your DNS provider, GitHub Pages will automatically create redirects between the domains. For example, if you configure www.example.com as the custom domain for your site, and you have GitHub Pages DNS records set up for the apex and www domains, then example.com will redirect to www.example.com. If you instead configure example.com as the custom domain, then www.example.com will redirect to example.com. Automatic redirects also apply to other subdomains, as www.blog.example.com will redirect to blog.example.com or vice versa. It is not possible to configure a domain that starts with www.www.. For more information, see Configuring a subdomain. Signed-off-by: Vangelis Koukis <vkoukis@gmail.com>
1 parent eb23ce3 commit 0e7042e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sfleet.dev

0 commit comments

Comments
 (0)