-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
36 lines (28 loc) · 843 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
30
31
32
33
34
35
36
[build]
publish = "public"
# All deploys from the production branch
[context.production]
command = "hugo --gc --minify -b $URL"
[context.production.environment]
HUGO_ENV = "production"
HUGO_VERSION = "0.124.0"
# All deploys generated from a pull/merge request will inherit these settings.
[context.deploy-preview]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_ENV = "preview"
HUGO_VERSION = "0.124.0"
# All deploys generated from branches that are not the site’s main production branch.
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_ENV = "preview"
HUGO_VERSION = "0.124.0"
[[redirects]]
from = "/en/*"
to = "/en/404"
status = 404
[[redirects]]
from = "/*"
to = "/404"
status = 404