From 75468b296896e6f3828bd413e227fec9e15a8aec Mon Sep 17 00:00:00 2001 From: Chris Abraham Date: Thu, 18 Jan 2024 14:44:27 +0700 Subject: [PATCH] Try to explicitly set HUGO_ENV in netlify.toml (#584) * set HUGO_ENV correctly Signed-off-by: Chris Abraham * remove redundant setting of HUGO_ENV Signed-off-by: Chris Abraham --------- Signed-off-by: Chris Abraham --- netlify.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index e34c500e..18941904 100644 --- a/netlify.toml +++ b/netlify.toml @@ -8,7 +8,6 @@ [build.environment] HUGO_VERSION = "0.107.0" - HUGO_ENV = "production" NODE_VERSION = "12.20.0" [context.branch-deploy] @@ -16,3 +15,9 @@ [context.deploy-preview] command = "go run mage.go -v DeployPreview" + +[context.production.environment] +HUGO_ENV = "production" + +[context.deploy-preview.environment] +HUGO_ENV = "preview" \ No newline at end of file