-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathnetlify.toml
More file actions
39 lines (33 loc) · 1.13 KB
/
netlify.toml
File metadata and controls
39 lines (33 loc) · 1.13 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
[build]
publish = "docs/build"
command = "make netlify-latest"
edge_functions = "docs/functions"
[build.environment]
NODE_VERSION = "22.16.0"
# some examples in v1/test/cases/testdata/v0/cryptox509* flag the netlify
# secret scan
SECRETS_SCAN_OMIT_PATHS = "v1/test/cases,v1/topdown/crypto_test.go"
[context.deploy-preview]
command = "make netlify-edge"
[[edge_functions]]
# this path should not be changed as various external sites depend on it for OPA
# badges.
path = "/badge/*"
function = "badge"
# Redirect all path based versioned requests to their new archived sites.
# https://github.com/open-policy-agent/opa/issues/7037
[[edge_functions]]
path = "/docs/*"
function = "version-redirect"
# function to process form notifications from netlify forms and send them to slack
[[edge_functions]]
path = "/api/feedback"
function = "feedback"
# /data/versions.json is used by versioned OPA deployments to determine
# if what the latest release is, how outdated they are.
[[headers]]
for = "/data/versions.json"
[headers.values]
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Methods = "GET, OPTIONS"
Access-Control-Allow-Headers = "Content-Type"