👷 Adjust Netlify URLs

pull/2/head
James Panther 2021-08-24 17:46:42 +10:00
parent 5ab6b19681
commit f44a9efd9e
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 4 additions and 3 deletions

View File

@ -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