Skip to content

Commit

Permalink
update netlify config
Browse files Browse the repository at this point in the history
Signed-off-by: weru <fromweru@gmail.com>
  • Loading branch information
onweru committed Jan 5, 2023
1 parent be27fd3 commit 28d25cb
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions exampleSite/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,33 @@ publish = "public"
command = "hugo --gc --minify"

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

[context.split1]
command = "hugo --gc --minify --enableGitInfo"

[context.split1.environment]
HUGO_VERSION = "0.82.0"
HUGO_VERSION = "0.109.0"
HUGO_ENV = "production"

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

[context.deploy-preview.environment]
HUGO_VERSION = "0.82.0"
HUGO_VERSION = "0.109.0"

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

[context.branch-deploy.environment]
HUGO_VERSION = "0.82.0"
HUGO_VERSION = "0.109.0"

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

[[redirects]]
from = "/npmjs/*"
to = "/npmjs/"
status = 200

0 comments on commit 28d25cb

Please sign in to comment.