Moving a Static Site Off Shared Hosting

I moved one of my projects off HostGator and onto Cloudflare this morning.

Spoiler alert, it’s this one:

+————————————-+
| $$$$$$ hansonhotline.com $$$$$$ |
+————————————-+

Mostly after spending way too much time with support trying to resolve an SSL error. After a few conversations that went nowhere, it felt like the right moment to, as usual, take matters into my own busy hands (on about three hours of sleep, naturally).

A few quick stats:

  • Build time: ~10 seconds
  • Total migration time: ~1.5 hours

Infrastructure steps:

  • Attach custom domain
  • Push React project to GitHub
  • Connect repo to Cloudflare Pages
  • Build & deploy (automatic)
  • Move DNS to Cloudflare

Where we’re at: Vite + TypeScript + Cloudflare + GitHub

The site is now a simple React build (Vite + TypeScript) deployed through Cloudflare Pages, with GitHub triggering the builds. DNS, SSL, and the CDN are handled by Cloudflare, so there’s no server to manage and deployments are just a git push.

It was also a good reminder that sometimes we already know how to do a lot more than we think — it just takes being forced to deploy something for all those pieces to finally click together.