netlify: add base directory

This commit is contained in:
Marcin Mierzejewski 2020-10-09 11:27:55 +02:00 committed by GitHub
parent d1daf7c33a
commit 9bbb8e552b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
[build] [build]
base = "exampleSite"
publish = "public" publish = "public"
command = "hugo --gc --minify" command = "hugo --gc --minify --themesDir ../../ -t hugo-theme-console"
[context.production.environment] [context.production.environment]
HUGO_VERSION = "0.76.3" HUGO_VERSION = "0.76.3"
@ -8,20 +9,20 @@ HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true" HUGO_ENABLEGITINFO = "true"
[context.split1] [context.split1]
command = "hugo --gc --minify --enableGitInfo" command = "hugo --gc --minify --enableGitInfo --themesDir ../../ -t hugo-theme-console"
[context.split1.environment] [context.split1.environment]
HUGO_VERSION = "0.76.3" HUGO_VERSION = "0.76.3"
HUGO_ENV = "production" HUGO_ENV = "production"
[context.deploy-preview] [context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL --themesDir ../../ -t hugo-theme-console"
[context.deploy-preview.environment] [context.deploy-preview.environment]
HUGO_VERSION = "0.76.3" HUGO_VERSION = "0.76.3"
[context.branch-deploy] [context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" command = "hugo --gc --minify -b $DEPLOY_PRIME_URL --themesDir ../../ -t hugo-theme-console"
[context.branch-deploy.environment] [context.branch-deploy.environment]
HUGO_VERSION = "0.76.3" HUGO_VERSION = "0.76.3"