forked from nginxinc/kubernetes-ingress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
47 lines (34 loc) · 958 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[build]
base = "docs/"
publish = "public"
command = "hugo --gc -b $DEPLOY_PRIME_URL/nginx-ingress-controller"
[build.environment]
HUGO_VERSION = "0.80.0"
[context.development]
command = "hugo --gc -e development"
[context.staging]
command = "hugo --gc -e staging"
[context.production]
command = "hugo --gc -e production"
[context.deploy-preview]
command = "hugo --gc -b $DEPLOY_PRIME_URL/nginx-ingress-controller"
[context.branch-deploy]
command = "hugo --gc -b $DEPLOY_PRIME_URL/nginx-ingress-controller"
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "https://docs.nginx.com"
[[redirects]]
from = "/"
to = "/nginx-ingress-controller/"
status = 301
force = true
[[redirects]]
from = "https://nginx-kubernetes-ingress/robots.txt"
to = "https://docs.nginx.com/robots.txt"
status = 301
force = true
[[redirects]]
from = "*"
to = "https://docs.nginx.com/404.html"
status = 404