Since we only have static files, we only need a simple web server to serve the site. It can be self-hosted or hosted on a cheap Webhosting solution and there are other cool options, like:
I choose GitHub Pages because it is
- Easy to use
- I’m using GitHub to manage the source and I can serve the site from the same repo
- Supports automation via GitHub Actions
- Supports custom domains with HTTPS using Let’s Encrypt
- Places the site behind a CDN which has DoS protection
If you haven’t heard about CDN, CloudFlare has a good and not too long article about it.
Putting it together
There are two things you need to set-up:
CNAMEfile (GitHub creates it for you)
- A few DNS records
Check out the documentation for the details:
GitHub can also create a certificate using Let’s Encrypt.
A few things to check after your site is up
- Valid cert
- Google Analytics?