Skip to content
Snippets Groups Projects
netlify.toml 795 B
Newer Older
Lars Bilke's avatar
Lars Bilke committed
# Netlify settings
[build]
  base    = "web"
  publish = "web/public"
  command = """
    git lfs fetch
    yarn --ignore-engines --ignore-optional --non-interactive &&
    hugo"""

[context.production.environment]
Lars Bilke's avatar
Lars Bilke committed
  HUGO_VERSION = "0.47"
  HUGO_ENV = "production"
  HUGO_ENABLEGITINFO = "true"

[context.deploy-preview]
  command = """
    git lfs fetch
    yarn --ignore-engines --ignore-optional --non-interactive &&
    hugo -b $DEPLOY_PRIME_URL"""

[context.deploy-preview.environment]
Lars Bilke's avatar
Lars Bilke committed
  HUGO_VERSION = "0.47"

[context.branch-deploy]
  command = """
    git lfs fetch
    yarn --ignore-engines --ignore-optional --non-interactive &&
    hugo -b $DEPLOY_PRIME_URL
    node_modules/.bin/hugo-algolia --toml -s"""

[context.branch-deploy.environment]
Lars Bilke's avatar
Lars Bilke committed
  HUGO_VERSION = "0.47"