Newer
Older
# Netlify settings
[build]
base = "web"
publish = "web/public"
command = """
git lfs fetch
yarn --ignore-engines --ignore-optional --non-interactive &&
node_modules/.bin/webpack -p --mode=production &&
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.deploy-preview]
command = """
git lfs fetch
yarn --ignore-engines --ignore-optional --non-interactive &&
node_modules/.bin/webpack -p --mode=production &&
hugo -b $DEPLOY_PRIME_URL"""
[context.branch-deploy]
command = """
git lfs fetch
yarn --ignore-engines --ignore-optional --non-interactive &&
node_modules/.bin/webpack -p --mode=production &&
hugo -b $DEPLOY_PRIME_URL
node_modules/.bin/hugo-algolia --toml -s"""
[context.branch-deploy.environment]
HUGO_VERSION = "0.42.1"