Hello Cloudflare ☁️

Cloudfront offers a free tier (1TB per month). I actually went to the Connect Cloudflare convention held in Sydney and there were many talks emphasising on security and deploying on the edge with many talks from reputable companies such as Safety Culture and Atlassian. It seems like Cloudflare is quite up to date you could say in the tech space. This page uses one of their service called Cloudflare pages which allows us to host my static Astro frontend (this website).

The main advantage with using Cloudflare is as follows

How to host a static website (explained simply)

  1. Create a website using a Framework. I am currently using Astro (one of my favourite frameworks for quick static websites). To make life easier (but not necessary to do) choosing from these list of frameworks for easy integration. Technically you can just provide a html/css/javascript file and that works as well!
  2. Once you have created your website. Make sure to upload it to a git repo
  3. Create a new cloudflare page, and choose the step to link your Github
  4. Choose your project and make sure to slect the Framework in the preset section that you used.
  5. Click deploy and it really is that easy! Of course things can get more complicated if you have environment variables to pass in.
  6. Next we have to make sure to connect it to a specific domain. I purchased this domain previously using vercel
Voila! that's literally all it takes to host a website. Super easy process. I guess in real life though there's a lot more to work on such as managing the CI/CD pipeline and putting tests in, especially when working ina team. But for hobbyist projects like this, this is pretty easy!