Skip to content

Commit

Permalink
Try to explicitly set HUGO_ENV in netlify.toml (#584)
Browse files Browse the repository at this point in the history
* set HUGO_ENV correctly

Signed-off-by: Chris Abraham <[email protected]>

* remove redundant setting of HUGO_ENV

Signed-off-by: Chris Abraham <[email protected]>

---------

Signed-off-by: Chris Abraham <[email protected]>
  • Loading branch information
cjyabraham authored Jan 18, 2024
1 parent f6b011f commit 75468b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@

[build.environment]
HUGO_VERSION = "0.107.0"
HUGO_ENV = "production"
NODE_VERSION = "12.20.0"

[context.branch-deploy]
command = "go run mage.go -v DeployBranch"

[context.deploy-preview]
command = "go run mage.go -v DeployPreview"

[context.production.environment]
HUGO_ENV = "production"

[context.deploy-preview.environment]
HUGO_ENV = "preview"

0 comments on commit 75468b2

Please sign in to comment.