-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathnetlify.toml
More file actions
35 lines (27 loc) · 971 Bytes
/
netlify.toml
File metadata and controls
35 lines (27 loc) · 971 Bytes
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
[build]
publish = "public"
command = "npm install && ./hack/download_openapi.sh && hugo --gc --minify"
[build.environment]
HUGO_VERSION = "0.160.1"
HUGO_EXTENDED = "true"
NODE_VERSION = "20"
GO_VERSION = "1.23"
[context.production.environment]
HUGO_ENV = "production"
# Deploy previews render content/en/docs/next/ so reviewers can see upcoming-release
# docs. HUGO_ENV != "production" skips config/production/hugo.yaml, which is where
# the `docs/next/**` content-mount exclusion lives.
[context.deploy-preview.environment]
HUGO_ENV = "preview"
[context.deploy-preview]
command = "npm install && ./hack/download_openapi.sh && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.branch-deploy]
command = "npm install && ./hack/download_openapi.sh && hugo --gc --minify -b $DEPLOY_PRIME_URL"
[[redirects]]
from = "/docs/v1/*"
to = "/docs/v1.2/:splat"
status = 301
[[redirects]]
from = "/*"
to = "/404.html"
status = 404