Skip to content

Commit d1eb009

Browse files
authored
Merge pull request #112 from kubernetes-sigs/update-for-netlify
Update netlify.toml for website
2 parents f467654 + eb4ac54 commit d1eb009

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

netlify.toml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,24 @@ command = "make -C docs/book build"
44
publish = "docs/book/book"
55

66
[build.environment]
7-
GO_VERSION = "1.17"
7+
GO_VERSION = "1.17"
8+
9+
# Standard Netlify redirects
10+
[[redirects]]
11+
from = "https://main--kubernetes-sigs-cluster-api-cloudstack.netlify.com/*"
12+
to = "https://main.cluster-api-cloudstack.sigs.k8s.io/:splat"
13+
status = 301
14+
force = true
15+
16+
# HTTP-to-HTTPS rules
17+
[[redirects]]
18+
from = "http://main.cluster-api-cloudstack.sigs.k8s.io/*"
19+
to = "https://main.cluster-api-cloudstack.sigs.k8s.io/:splat"
20+
status = 301
21+
force = true
22+
23+
[[redirects]]
24+
from = "http://main--kubernetes-sigs-cluster-api-cloudstack.netlify.com/*"
25+
to = "http://main.cluster-api-cloudstack.sigs.k8s.io/:splat"
26+
status = 301
27+
force = true

0 commit comments

Comments
 (0)