Skip to content

Commit 5d139eb

Browse files
authored
Document HUGO_VERSION env var (cloudflare#896)
1 parent 51d4681 commit 5d139eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

products/pages/src/content/how-to/deploy-a-hugo-site.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ For the complete guide to deploying your first site to Cloudflare Pages, check o
177177

178178
Once you've deployed your site, you'll receive a unique subdomain for your project on `pages.dev`. Every time you commit new code to your Hugo site, Cloudflare Pages will automatically rebuild your project and deploy it. You'll also get access to [preview deployments](/platform/preview-deployments) on new pull requests, so you can preview how changes look to your site before deploying them to production.
179179

180+
## Using a specific Hugo version
181+
182+
You can set the environment variable `HUGO_VERSION` under Settings to use a specific version of Hugo.
183+
184+
For example, `HUGO_VERSION`: `0.81.0`
185+
180186
## Learn more
181187

182188
Congrats, you've deployed your Hugo site on Cloudflare Pages! To learn more about what you can do with the platform, [check out our How-To section](/how-to).

0 commit comments

Comments
 (0)