While tempering with my first_post I was puzzled because Cloudflare Pages was building differently for preview and production.

Today I learned that there are two different sets of environment variables for building preview and production. But until this moment I had only set the variables for production.

As consequence

  • the preview was built with Hugo 0.54.0 (the default) and
  • the production was built with Hugo 0.104.3.

That’s a difference…

So, don’t forget to set the variables twice; for preview and for production1.


  1. Except you want to have a different behavior. ↩︎