Skip to content

Commit b13089b

Browse files
authored
Merge pull request #2810 from cncf/build-env
Try to explicitly set HUGO_ENV in netlify.toml
2 parents 9665c77 + 487ee0a commit b13089b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

netlify.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[build.environment]
22
NODE_VERSION = "18.16.1"
33
HUGO_VERSION = "0.115.2"
4+
5+
[context.production.environment]
6+
HUGO_ENV = "production"
7+
8+
[context.deploy-preview.environment]
9+
HUGO_ENV = "preview"

0 commit comments

Comments
 (0)