{"id":4427,"date":"2022-10-20T17:00:41","date_gmt":"2022-10-20T21:00:41","guid":{"rendered":"https:\/\/cindypotvin.com\/?p=4427"},"modified":"2022-10-20T17:11:11","modified_gmt":"2022-10-20T21:11:11","slug":"hosting-a-static-website-for-free-in-15-minutes-with-cloudflare-workers-sites","status":"publish","type":"post","link":"https:\/\/cindypotvin.com\/hosting-a-static-website-for-free-in-15-minutes-with-cloudflare-workers-sites\/","title":{"rendered":"Hosting a static website for free in 15 minutes with Cloudflare Workers Sites"},"content":{"rendered":"

I’ve had an old school PHP hosting for ages, and I’m currently moving all the sites I’m hosting there to newer and more effective technologies. <\/p>\n\n\n\n

I have a few static sites included in the mix: I’ve been writing pure HTML + CSS for so long that it’s still my favorite solution if I want to spin up a quick landing page for a project.<\/p>\n\n\n\n

The best solution for me ended up being Cloudflare’s Worker Sites. The setup is simpler than using a static page generator, and once it’s done a new version can be deployed in an instant with a single command. The server is quick, and it’s free (up to a decent bit of traffic)! <\/p>\n\n\n\n

Cloudflare also has a Pages product that takes the static result of a build from a git repository from a site built with tools such as React, but I have not tested it, and my use case is simple enough right now that it’s not worth setting up a git repo for each site.<\/p>\n\n\n\n

Site to deploy<\/h2>\n\n\n\n

I decided to start the move with one of my newest project: http:\/\/manibas.com<\/a>, a site to sell my hand cranked socks. For a quick rundown of the landing page :<\/p>\n\n\n\n