Skip to content

Commit 38adea3

Browse files
committed
fix:netlify parsing
1 parent a2f3beb commit 38adea3

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

netlify.toml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
[build]
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-
"""
2+
publish = "public"
3+
[context.production]
4+
command="hugo --baseURL=https://istio.io/latest"
5+
[context.deploy-preview]
6+
command="hugo --baseURL=${DEPLOY_PRIME_URL}/"
7+
[context.branch-deploy]
8+
command="hugo --baseURL=https://preliminary.istio.io/"
129
[build.environment]
1310
# Consult the Docs WG before bumping Hugo.
1411
# Specifically, the version here should match docker/build-tools/Dockerfile in istio/tools,

0 commit comments

Comments
 (0)