forked from dennis-tra/lassunsreden.ch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
29 lines (24 loc) · 967 Bytes
/
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
[build]
publish = "public"
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
environment = { HUGO_VERSION = "0.75.1", HUGO_ENABLEGITINFO = "true" }
# Production context: all deploys from the Production branch set in your site's
# deploy contexts will inherit these settings.
[context.production]
command = "hugo --gc --minify -b $URL"
environment = { HUGO_ENV = "production" }
# Deploy Preview context: all deploys generated from a pull/merge request will
# inherit these settings.
[context.deploy-preview]
environment = { HUGO_ENV = "development" }
# Branch Deploy context: all deploys that are not from a pull/merge request or
# from the Production branch will inherit these settings.
[context.branch-deploy]
environment = { HUGO_ENV = "staging" }
# Staging context: only deploys from the staging branch
[context.staging]
environment = { HUGO_ENV = "production" }
[[redirects]]
from = "/*"
to = "/404.html"
status = 404