Cloudflare Workers and PagesAuthor: Timothy Rogers | Published: Oct 29, 2021
Cloudflare Workers & Pages
It sure has been a while since I have posted anything here on my blog… that said you might have realized that the site has changed and maybe even noticed it might be a tad bit faster for you. Well that is because I have started to pick back up coding, because I really do wanna get back into DevOps. That said, I am back to my old shinigans of trying to build things and host them as cheap as possible while not compromising on performance.
Back to Cloudflare
Some of you may know I have been a long time fan of Cloudflare and its amazing feature set of giving so much value for free to users. I know there is a tabu of using it, but I have always felt based off what I have seen and personally follow (I am also a stock holder now as well)… that they offer too many amazing services for developers and small companies that are just too cost prohibitive to do with anyone else.
That said, their latest service they have released public called Pages is what I am using now for this site and will be migrating Zadaroo over to it as soon as I finish up the new version of the site. I have also been using their Workers service as well for my personal API that does some small cool things for myself and others in NeosVR to see what we are playing live for others to see.
Pages A Free CI/CD Dream
So the big reason why I have migrated to Cloudflare Pages for my site, is because it is so much easier to work on my site, test changes before they go public. I am able to push my changes to my GitHub repo for my site, and it kicks off a job immediately to update the site. It also builds the other branches on the fly as well, but gives them a unique link that isn’t mapped to the regular live link so you can see the development builds of your site beside your live site.
So I know you might be asking why I don’t just use GitHub’s built in Pages service. Well there are a couple reasons, and there are two big ones. The first one is that Cloudflare Pages push your site to all their edge nodes, so no matter where in the world someone visits the site, it will be loaded from the closest Cloudflare edge node. The second big feature is the extra features of ability to have custom error pages, routes, and more to your site.
Workers Saving Me Money