From 47d003974adb3b3540656ef6c6cb5a7a1f1d44a5 Mon Sep 17 00:00:00 2001 From: Giovanni Liva Date: Mon, 11 Sep 2023 13:02:51 +0200 Subject: [PATCH 1/2] fix: fix netlify toml configuration Signed-off-by: Giovanni Liva --- netlify.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/netlify.toml b/netlify.toml index 59fbfab156..16c00f459b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -26,11 +26,10 @@ HUGO_ENV = "development" [context.branch-deploy.environment] HUGO_ENV = "staging" -[context.production.environment] -HUGO_ENV = "production" - [context.production] # On netlify our branch will always be the one we are currently building for # important information regarding naming # https://gohugo.io/getting-started/configuration/#configure-with-environment-variables command = "HUGOxPARAMSxGITHUB_BRANCH=$BRANCH HUGOxPARAMSxCURRENTVERSION=$BRANCH hugo -b $URL" + +environment = { HUGO_ENV = "production" } \ No newline at end of file From 4550cbffa82b3427cf7c9509bdf6b9045f8cee28 Mon Sep 17 00:00:00 2001 From: Giovanni Liva Date: Mon, 11 Sep 2023 13:21:25 +0200 Subject: [PATCH 2/2] Update netlify.toml Co-authored-by: Florian Bacher Signed-off-by: Giovanni Liva --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 16c00f459b..2859912470 100644 --- a/netlify.toml +++ b/netlify.toml @@ -32,4 +32,4 @@ HUGO_ENV = "staging" # https://gohugo.io/getting-started/configuration/#configure-with-environment-variables command = "HUGOxPARAMSxGITHUB_BRANCH=$BRANCH HUGOxPARAMSxCURRENTVERSION=$BRANCH hugo -b $URL" -environment = { HUGO_ENV = "production" } \ No newline at end of file +environment = { HUGO_ENV = "production" }