Skip to content

Commit 937094e

Browse files
authored
Add netlify.toml file (#442)
1 parent f1c7088 commit 937094e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

netlify.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Netlify build instructions
2+
[build]
3+
command = "make -C docs/book build"
4+
publish = "docs/book/book"
5+
6+
[build.environment]
7+
GO_VERSION = "1.16"
8+
9+
# Standard Netlify redirects
10+
[[redirects]]
11+
from = "https://master--cluster-api-ibmcloud.netlify.com/*"
12+
to = "https://main.cluster-api-ibmcloud.sigs.k8s.io/:splat"
13+
status = 301
14+
force = true
15+
16+
# HTTP-to-HTTPS rules
17+
[[redirects]]
18+
from = "http://main.cluster-api-ibmcloud.sigs.k8s.io/*"
19+
to = "https://main.cluster-api-ibmcloud.sigs.k8s.io/:splat"
20+
status = 301
21+
force = true
22+
23+
[[redirects]]
24+
from = "http://main--cluster-api-ibmcloud.netlify.com/*"
25+
to = "http://main.cluster-api-ibmcloud.sigs.k8s.io/:splat"
26+
status = 301
27+
force = true

0 commit comments

Comments
 (0)