-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathnetlify.toml
More file actions
176 lines (144 loc) · 4.6 KB
/
Copy pathnetlify.toml
File metadata and controls
176 lines (144 loc) · 4.6 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# Hugo build configuration for Netlify with Chatbot Functions
# (https://gohugo.io/hosting-and-deployment/hosting-on-netlify/#configure-hugo-version-in-netlify)
[build]
command = "npm install && npm run build:preview && node scripts/post-build.js"
publish = "public"
functions = "netlify/functions"
[build.environment]
HUGO_VERSION = "0.146.0"
GO_VERSION = "1.22.2"
NODE_VERSION = "20"
SECRETS_SCAN_OMIT_KEYS = "LLM_PROVIDER,LLM_MODEL,JIRA_PROJECT_KEY"
HUGO_CACHEDIR = "/tmp/hugo-cache"
[context.production]
command = "npm install && npm run build:production && node scripts/post-build.js"
functions = "netlify/functions"
[context.production.environment]
HUGO_VERSION = "0.146.0"
SECRETS_SCAN_OMIT_KEYS = "LLM_PROVIDER,LLM_MODEL,JIRA_PROJECT_KEY"
HUGO_CACHEDIR = "/tmp/hugo-cache"
[context.deploy-preview]
command = "npm install && npm run build:preview && node scripts/post-build.js"
[context.deploy-preview.environment]
HUGO_VERSION = "0.146.0"
# Function-specific settings
[functions]
directory = "netlify/functions"
node_bundler = "esbuild"
# Environment variables - set these in Netlify dashboard:
# LLM_API_KEY, LLM_PROVIDER, LLM_MODEL, DAILY_CHAT_LIMIT
# krkn-operator 1.0 launch TO BE REMOVED AFTER THE LAUNCH
[[redirects]]
from = "/go/1.0/hackernews"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=hackernews&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/linkedin"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=linkedin&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/dailydev"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=dailydev&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/reddit"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=reddit&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/community"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=community&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/cncf-slack"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=cncf-slack&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/cncf-slack-ocm"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=cncf-slack-ocm&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/devto"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=devto&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/x"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=x&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/facebook"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=facebook&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/slashdot"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=slashdot&campaign=1.0"
status = 302
force = true
[[redirects]]
from = "/go/1.0/phoronix"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/launch?source=phoronix&campaign=1.0"
status = 302
force = true
# REPO REDIRECTS
# Hacker News
[[redirects]]
from = "/repo/hn"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/repo?source=hackernews"
status = 302
force = true
# Reddit - DevOps
[[redirects]]
from = "/repo/reddit-devops"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/repo?source=reddit-devops"
status = 302
force = true
# Reddit - Kubernetes
[[redirects]]
from = "/repo/reddit-kubernetes"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/repo?source=reddit-kubernetes"
status = 302
force = true
# Reddit - SRE
[[redirects]]
from = "/repo/reddit-sre"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/repo?source=reddit-sre"
status = 302
force = true
# Reddit - OpenShift
[[redirects]]
from = "/repo/reddit-openshift"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/repo?source=reddit-openshift"
status = 302
force = true
# CNCF community
[[redirects]]
from = "/repo/cncf"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/repo?source=cncf"
status = 302
force = true
# OCM / ACM community
[[redirects]]
from = "/repo/ocm"
to = "https://krkn-chaos.gateway.scarf.sh/krkn-operator/repo?source=ocm"
status = 302
force = true
# catch trailing-slash variants of all /go/1.0/* short links
[[redirects]]
from = "/go/1.0/*/"
to = "/go/1.0/:splat"
status = 302
force = true
[[redirects]]
from = "/repo/*/"
to = "/repo/:splat"
status = 302
force = true