👷 Update Netlify config

pull/2/head
James Panther 2021-08-24 17:56:26 +10:00
parent f44a9efd9e
commit 234359dd9c
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 12 additions and 4 deletions

View File

@ -1,16 +1,24 @@
[build] [build]
base = "exampleSite" base = "exampleSite"
command = "hugo --gc --minify" command = "hugo --gc --minify -b $URL"
publish = "public" publish = "public"
[build.environment] [build.environment]
HUGO_VERSION = "0.86.1"
HUGO_THEMESDIR = "../.." HUGO_THEMESDIR = "../.."
HUGO_THEME = "repo" HUGO_THEME = "repo"
[context.production.environment] [context.production.environment]
HUGO_BASEURL = $URL HUGO_VERSION = "0.86.1"
HUGO_ENV = "production" HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment] [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"