Skip to content

Commit

Permalink
Add netlify.toml file (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkumatag authored Dec 1, 2021
1 parent f1c7088 commit 937094e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Netlify build instructions
[build]
command = "make -C docs/book build"
publish = "docs/book/book"

[build.environment]
GO_VERSION = "1.16"

# Standard Netlify redirects
[[redirects]]
from = "https://master--cluster-api-ibmcloud.netlify.com/*"
to = "https://main.cluster-api-ibmcloud.sigs.k8s.io/:splat"
status = 301
force = true

# HTTP-to-HTTPS rules
[[redirects]]
from = "http://main.cluster-api-ibmcloud.sigs.k8s.io/*"
to = "https://main.cluster-api-ibmcloud.sigs.k8s.io/:splat"
status = 301
force = true

[[redirects]]
from = "http://main--cluster-api-ibmcloud.netlify.com/*"
to = "http://main.cluster-api-ibmcloud.sigs.k8s.io/:splat"
status = 301
force = true

0 comments on commit 937094e

Please sign in to comment.