I was hosting my site from home on my NAS until I discovered Cloudflare Pages.
- Make a private repository on Github and upload your site files from a Blocs export (I use GitHub Desktop to upload as it makes it super easy"
- Go to Cloudflare then Workers/Pages on the main dashboard
- Create Application > Pages > Connect to Git > Choose your repository > Begin setup > name the project > Save and deploy
- Go to custom domain under project settings and enter your domain name
- Setup the CNAME record on your domains name servers
- Done! Free hosting!
Optional: To get 404 pages to work make a 404 page template on your site in blocs. Export your site and rename the 404 page to 404.html. Edit the code manually for this page and replace “…/” with “https://yourdomain.com/” using a find and replace function. Then place this 404.html file at the root of your site’s repository in GitHub.
Check out my sites on Cloudflare pages:
My Portfolio
Client’s Dog Treat Site