We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c1099b commit a2f3bebCopy full SHA for a2f3beb
netlify.toml
@@ -1,6 +1,14 @@
1
[build]
2
- publish = "public"
3
-
+ publish = "public"
+ 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
+ """
12
[build.environment]
13
# Consult the Docs WG before bumping Hugo.
14
# Specifically, the version here should match docker/build-tools/Dockerfile in istio/tools,
@@ -21,4 +29,4 @@
21
29
22
30
[[edge_functions]]
23
31
path = "/v*"
24
- function = "redirect-to-latest"
32
+ function = "redirect-to-latest"
0 commit comments