Fix Hugo Preview Build Failures and English 404s on Cloudflare Pages

Fixing a Hugo Version Mismatch and a Broken English Page on Cloudflare Pages Preview Deployments

After I published the English version under /en/ in Publishing an English Version of a Hugo Blog at a Separate /en/ URL , I tried to send non-main branches to Cloudflare Pages Preview and hit two problems in a row. main (production) was succeeding without issue, so at first I had no idea where the cause was. The Preview build fails with permalink ill-formed After deploy, clicking “English” in the menu returns 404 The root of both was that Cloudflare Pages manages environment variables separately for Production and Preview. I worked through them one at a time. [Read More]

Moving a Hugo Site from Netlify to Cloudflare Pages

How to migrate your Hugo blog from Netlify to Cloudflare Pages.

I had already finished the move from Netlify to Cloudflare on my other blog, and since the summer holidays gave me some time, I did the migration on this site too. It was almost the same work as the migration on the other blog, so I was able to move over fairly easily. Github To link it with Cloudflare, set the repository in question to allow the integration. [Read More]