Fix the baseURL in Netlify config

This commit is contained in:
Gabriel Arazas 2022-11-28 10:12:57 +08:00
parent 296ed986c2
commit b3f692e584

View File

@ -2,23 +2,28 @@
publish = "public/" publish = "public/"
command = "gem install bundler -v '~> 2.3' && bundle && hugo --gc --minify" command = "gem install bundler -v '~> 2.3' && bundle && hugo --gc --minify"
[context.production]
command = "gem install bundler -v '~> 2.3' && bundle && hugo --gc --minify --baseURL $URL"
[context.production.environment] [context.production.environment]
RUBY_VERSION = "3.0.4" RUBY_VERSION = "3.0.4"
HUGO_VERSION = "0.107.0" HUGO_VERSION = "0.107.0"
HUGO_ENV = "production" HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true" HUGO_ENABLEGITINFO = "true"
HUGO_BASE_URL = "$DEPLOY_URL"
[context.production]
command = "gem install bundler -v '~> 2.3' && bundle && hugo --buildDrafts --buildFuture --buildExpired --baseURL $DEPLOY_PRIME_URL"
[context.branch-deploy.environment] [context.branch-deploy.environment]
RUBY_VERSION = "3.0.4" RUBY_VERSION = "3.0.4"
HUGO_VERSION = "0.107.0" HUGO_VERSION = "0.107.0"
HUGO_ENV = "development" HUGO_ENV = "development"
HUGO_BASE_URL = "$DEPLOY_PRIME_URL"
[context.deploy-preview]
command = "gem install bundler -v '~> 2.3' && bundle && hugo --buildDrafts --buildFuture --buildExpired --baseURL $DEPLOY_PRIME_URL"
[context.deploy-preview.environment] [context.deploy-preview.environment]
RUBY_VERSION = "3.0.4" RUBY_VERSION = "3.0.4"
HUGO_ENV = "development" HUGO_ENV = "development"
HUGO_VERSION = "0.107.0" HUGO_VERSION = "0.107.0"
[context.deploy-preview]
command = "hugo --buildDrafts --buildFuture --buildExpired --baseURL $DEPLOY_PRIME_URL"