👷 Update Netlify config

This commit is contained in:
James Panther
2021-08-24 17:56:26 +10:00
parent f44a9efd9e
commit 234359dd9c
+12 -4
View File
@@ -1,16 +1,24 @@
[build]
base = "exampleSite"
command = "hugo --gc --minify"
command = "hugo --gc --minify -b $URL"
publish = "public"
[build.environment]
HUGO_VERSION = "0.86.1"
HUGO_THEMESDIR = "../.."
HUGO_THEME = "repo"
[context.production.environment]
HUGO_BASEURL = $URL
HUGO_VERSION = "0.86.1"
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_BASEURL = $DEPLOY_PRIME_URL
HUGO_VERSION = "0.86.1"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.86.1"