Skip to content

Commit 21e9c84

Browse files
committed
build: pin Hugo for Cloudflare Pages
1 parent f9f453b commit 21e9c84

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
22
.hugo_build.lock
3+
.wrangler/
34
public/
45
resources/

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ The production site is built warning-strict and published at
2929
`https://farrow.pgsty.com/`. Pages settings and DNS must authorize that domain
3030
before deployment.
3131

32-
Cloudflare Pages must define `HUGO_VERSION=0.165.0` in both the Production and
33-
Preview build environments. Cloudflare's default Hugo can be older than the
34-
minimum required by Oink; `HUGO_SERVER` is not a recognized version selector.
32+
The source-controlled `wrangler.toml` defines `HUGO_VERSION=0.165.0` for both
33+
the Production and Preview build environments. Cloudflare's default Hugo can
34+
be older than the minimum required by Oink; `HUGO_SERVER` is not a recognized
35+
version selector.
3536

3637
## Content policy
3738

wrangler.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name = "farrow-pgsty-com"
2+
pages_build_output_dir = "./public"
3+
compatibility_date = "2026-08-28"
4+
5+
[vars]
6+
HUGO_VERSION = "0.165.0"
7+
8+
[env.preview.vars]
9+
HUGO_VERSION = "0.165.0"

0 commit comments

Comments
 (0)