Skip to content

Commit a2f3beb

Browse files
committed
Update netlify.toml
1 parent 3c1099b commit a2f3beb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

netlify.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
[build]
2-
publish = "public"
3-
2+
publish = "public"
3+
command = """
4+
if [ \"$CONTEXT\" = \"production\" ]; then
5+
hugo --baseURL=\"https://istio.io/\"
6+
elif [ \"$CONTEXT\" = \"deploy-preview\" ]; then
7+
hugo --baseURL=\"$DEPLOY_PRIME_URL/\"
8+
else
9+
hugo --baseURL=\"https://preliminary.istio.io/\"
10+
fi
11+
"""
412
[build.environment]
513
# Consult the Docs WG before bumping Hugo.
614
# Specifically, the version here should match docker/build-tools/Dockerfile in istio/tools,
@@ -21,4 +29,4 @@
2129

2230
[[edge_functions]]
2331
path = "/v*"
24-
function = "redirect-to-latest"
32+
function = "redirect-to-latest"

0 commit comments

Comments
 (0)