Skip to content

Commit 88d6924

Browse files
committed
packaging: automatically set BaseURL for Netlify deployments
1 parent 103463d commit 88d6924

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

netlify.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build]
2-
command = "hugo"
2+
command = "hugo --gc --minify -b $URL"
33
publish = "public"
44

55
[build.environment]
@@ -8,3 +8,9 @@
88

99
[context.production.environment]
1010
HUGO_ENV = "production"
11+
12+
[context.deploy-preview]
13+
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
14+
15+
[context.branch-deploy]
16+
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

0 commit comments

Comments
 (0)