Skip to content

Commit 2c735ca

Browse files
committed
fix: set baseURL by Netlify context for valid sitemaps
1 parent 3c1099b commit 2c735ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

netlify.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
[build]
22
publish = "public"
3+
command = "hugo --baseURL=$BASEURL"
4+
[context.production.environment]
5+
BASEURL = "https://istio.io/"
6+
[context.prelim.environment]
7+
BASEURL = "https://preliminary.istio.io/"
38

9+
[context.deploy-preview.environment]
10+
BASEURL = "$DEPLOY_PRIME_URL/"
411
[build.environment]
512
# Consult the Docs WG before bumping Hugo.
613
# Specifically, the version here should match docker/build-tools/Dockerfile in istio/tools,

0 commit comments

Comments
 (0)