Files
releases/netlify.toml
T
Charlie Egan 4aa4554f8e website: Fix build issues (#7999)
There are some build issues related to a new netlify base image.

https://app.netlify.com/projects/openpolicyagent/deploys/69020ac6a2fe410008c643de

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
2025-10-29 15:21:03 +00:00

35 lines
1011 B
TOML

[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"
# /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"