Skip to content

Instantly share code, notes, and snippets.

@flaviocopes
Created July 19, 2018 06:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flaviocopes/a5db876bea8c5d896ee0d29153ab89e0 to your computer and use it in GitHub Desktop.
Save flaviocopes/a5db876bea8c5d896ee0d29153ab89e0 to your computer and use it in GitHub Desktop.
Netlify configuration file for Hugo
[build]
publish = "public"
command = "hugo"
[context.production.environment]
HUGO_VERSION = "0.43"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.split1]
command = "hugo --enableGitInfo"
[context.split1.environment]
HUGO_VERSION = "0.43"
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.43"
[context.branch-deploy]
command = "hugo -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.43"
[context.next.environment]
HUGO_ENABLEGITINFO = "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment