🔀 Merge pull request #88 from hugo-sid/patch-1

👷 Specify `HUGO_VERSION` environment variable once in `netlify.toml`
This commit is contained in:
James Panther 2023-09-10 10:44:13 +10:00 committed by GitHub
commit 7e80068ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,22 +3,16 @@
publish = "exampleSite/public"
[build.environment]
HUGO_VERSION = "0.112.7"
HUGO_THEMESDIR = "../.."
HUGO_THEME = "repo"
TZ = "Australia/Melbourne"
[context.production.environment]
HUGO_VERSION = "0.112.7"
HUGO_ENV = "production"
[context.deploy-preview]
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.112.7"
[context.branch-deploy]
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.112.7"