Skip to content
Snippets Groups Projects
netlify.toml 946 B
Newer Older
  • Learn to ignore specific revisions
  • 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 &&
        node_modules/.bin/webpack -p --mode=production &&
    
        hugo"""
    
    
    [context.production.environment]
    
      HUGO_VERSION = "0.42.1"
    
      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.deploy-preview.environment]
    
      HUGO_VERSION = "0.42.1"
    
    
    [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"