test(netlify): fix baseURL for production site

This commit is contained in:
Jimmy Cai 2020-08-24 23:12:57 +02:00
parent a56c970e36
commit 3176c92702

View File

@ -1,7 +1,18 @@
[build] [build]
publish = "exampleSite/public" publish = "exampleSite/public"
command = "cd exampleSite && hugo --gc --themesDir ../.. -b $DEPLOY_PRIME_URL"
[build.environment] [build.environment]
HUGO_VERSION = "0.74.3" HUGO_VERSION = "0.74.3"
HUGO_THEME = "repo" HUGO_THEME = "repo"
[context.production]
command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}"
[context.production.environment]
HUGO_ENV = "production"
[context.branch-deploy]
command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}"
[context.deploy-preview]
command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}"