Skip to content

Instantly share code, notes, and snippets.

@erikhoward
Created February 26, 2018 05:41
Show Gist options
  • Save erikhoward/233c6865bd13a513a15e023d673f744e to your computer and use it in GitHub Desktop.
Save erikhoward/233c6865bd13a513a15e023d673f744e to your computer and use it in GitHub Desktop.

Revisions

  1. Erik Howard created this gist Feb 26, 2018.
    24 changes: 24 additions & 0 deletions netlify.toml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    [build]
    publish = "public"
    command = "hugo"

    [context.production.environment]
    HUGO_VERSION = "0.36.1"
    HUGO_ENV = "production"
    HUGO_ENABLEGITINFO = "true"

    [context.deploy-preview.environment]
    HUGO_VERSION = "0.36.1"

    [context.deploy-preview]
    command = "hugo -b $DEPLOY_PRIME_URL"

    [context.branch-deploy]
    command = "hugo -b $DEPLOY_PRIME_URL"

    [context.branch-deploy.environment]
    HUGO_VERSION = "0.36.1"

    [context.next.environment]
    HUGO_ENABLEGITINFO = "true"