forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
33 lines (27 loc) · 1.04 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
[build]
publish = "docs/website/public"
command = "make netlify-prod WASM_ENABLED=0 CGO_ENABLED=0"
ignore = "./build/docs-build-needed.sh"
edge_functions = "docs/website/edge"
[[edge_functions]]
path = "/badge-endpoint/*"
function = "badge"
[build.environment]
# keep this version in sync with the version in .github/workflows/pull-request.yml
# Note, that upgrading Hugo is tricky as all versions of the OPA docs need to work
# with the Hugo version used.
# see: https://github.com/open-policy-agent/opa/pull/7034
HUGO_VERSION = "0.113.0"
[context.deploy-preview]
command = "make netlify-preview WASM_ENABLED=0 CGO_ENABLED=0"
[context.branch-deploy]
command = "make netlify-preview WASM_ENABLED=0 CGO_ENABLED=0"
[dev]
# "netlify dev" will serve the static content using netlify locally
# with all the redirects and other netlify specific rules in place.
publish = "docs/website/public"
framework = "#static"
# To run the netlify dev service with hugo dev server "live" behind
# it uncomment these lines:
# command = "make docs-hugo-serve"
# port = 1313