mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 18:31:45 +01:00
test(netlify): fix baseURL for production site
This commit is contained in:
parent
a56c970e36
commit
3176c92702
1 changed files with 13 additions and 2 deletions
13
netlify.toml
13
netlify.toml
|
@ -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}"
|
Loading…
Reference in a new issue