forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
103 lines (81 loc) · 2.3 KB
/
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
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
[build]
base = "website"
publish = "public"
# Reinstate this when we figure out how to target this better
#ignore = "./scripts/build-ignore.sh"
[build.environment]
HUGO_VERSION = "0.84.0"
ALGOLIA_INDEX_FILE="public/search.json"
[context.production]
command = "make ci-production-build"
[context.production.environment]
ALGOLIA_INDEX_NAME="vector_docs_prod"
[context.deploy-preview]
command = "make ci-preview-build"
[context.deploy-preview.environment]
ALGOLIA_INDEX_NAME="vector_docs_staging"
[context.branch-deploy]
command = "make ci-preview-build"
[context.branch-deploy.environment]
ALGOLIA_INDEX_NAME="vector_docs_staging"
# Subdomain redirects
[[redirects]]
from = "https://vector-project.netlify.com/*"
to = "https://vector.dev/:splat"
status = 301
force = true
[[redirects]]
from = "https://calendar.vector.dev/*"
to = "https://calendar.google.com/calendar/embed?src=c_qsq1nrsgetsspkn7pjrqh6cclc%40group.calendar.google.com&ctz=America%2FNew_York"
status = 302
force = true
[[redirects]]
from = "https://chat.vector.dev/*"
to = "https://discord.gg/dX3bdkF"
status = 302
force = true
[[redirects]]
from = "https://discussions.vector.dev/*"
to = "https://github.com/vectordotdev/vector/discussions"
status = 302
force = true
[[redirects]]
from = "https://sh.vector.dev/*"
to = "http://sh.vector.dev.s3-website-us-east-1.amazonaws.com/:splat"
status = 200
force = true
[[redirects]]
from = "https://test-results.vector.dev/*"
to = "http://test-results.vector.dev.s3-website-us-east-1.amazonaws.com/:splat"
status = 200
force = true
[[redirects]]
from = "https://rustdoc.vector.dev/*"
to = "https://vector-rustdoc.netlify.app/vector/:splat"
status = 301
force = true
[[redirects]]
from = "/support/"
to = "https://www.datadoghq.com/product/observability-pipelines"
status = 301
force = true
[[redirects]]
from = "/support-services/"
to = "https://www.datadoghq.com/product/observability-pipelines"
status = 301
force = true
# Removed pages redirects
[[redirects]]
from = "/docs/reference/configuration/field-path-notation/"
to = "/docs/reference/vrl/expressions/#path"
force = true
# CORS headers for /index.json
[[headers]]
for = "/index.json"
[headers.values]
Access-Control-Allow-Origin = "*"
# Netlify plugins
[[plugins]]
package = "@netlify/plugin-lighthouse"
[plugins.inputs]
output_path = "reports/lighthouse/index.html"