Hugo Version Requirements Link to heading
Cloudflare Pages deployments of Hugo sites require explicit version configuration. Without this, builds may fail or produce unexpected results, particularly with themes that have specific version dependencies.
Configuration Steps Link to heading
Set the Hugo version in your Cloudflare Pages environment variables:
HUGO_VERSION = 0.121.0
Version Verification Link to heading
Check your local Hugo version:
hugo version
Ensure this matches your Cloudflare Pages configuration.
Common Build Failures Link to heading
Theme builds typically fail when:
- Hugo version is older than theme requirements
- Extended features are required but not enabled
- Version incompatibilities exist between theme components
Implementation Link to heading
- Navigate to Cloudflare Pages project settings
- Locate Environment Variables
- Add
HUGO_VERSION
with your required version - Rebuild deployment
Documentation Link to heading
Document your Hugo version requirements:
dependencies:
hugo: "0.121.0"
extended: true
This ensures consistent builds across development and production environments.