From f44a9efd9ebd187cf5a5eb66cad43c2354dc9d85 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Tue, 24 Aug 2021 17:46:42 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Adjust=20Netlify=20URLs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- netlify.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/netlify.toml b/netlify.toml index 9debf2b3..5f73fc48 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] base = "exampleSite" - command = "hugo --minify" + command = "hugo --gc --minify" publish = "public" [build.environment] @@ -9,7 +9,8 @@ HUGO_THEMESDIR = "../.." HUGO_THEME = "repo" [context.production.environment] -HUGO_BASEURL = "$URL" +HUGO_BASEURL = $URL +HUGO_ENV = "production" [context.deploy-preview.environment] -HUGO_BASEURL = "$DEPLOY_PRIME_URL" +HUGO_BASEURL = $DEPLOY_PRIME_URL