diff options
author | George Cushen <gcushen@users.noreply.github.com> | 2019-05-29 23:08:35 +0300 |
---|---|---|
committer | George Cushen <gcushen@users.noreply.github.com> | 2019-05-29 23:08:35 +0300 |
commit | 88d6924d34d00742a0e9fc7db6cfbaca1b877151 (patch) | |
tree | b0063d7980b91b280c0c9c98bec9c0ac95b85e77 /netlify.toml | |
parent | 103463d1d5b75be506897c364d5c18fad51928d7 (diff) |
packaging: automatically set BaseURL for Netlify deployments
Diffstat (limited to 'netlify.toml')
-rw-r--r-- | netlify.toml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/netlify.toml b/netlify.toml index 04b0e6a6..0667350d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build] - command = "hugo" + command = "hugo --gc --minify -b $URL" publish = "public" [build.environment] @@ -8,3 +8,9 @@ [context.production.environment] HUGO_ENV = "production" + +[context.deploy-preview] + command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" + +[context.branch-deploy] + command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" |