netlify.toml 969 Bytes
Newer Older
julientaq's avatar
julientaq committed
1
2
[build]
publish = "public"
julientaq's avatar
julientaq committed
3
command = "hugo --gc --minify"
julientaq's avatar
julientaq committed
4
5

[context.production.environment]
julientaq's avatar
julientaq committed
6
HUGO_VERSION = "0.80.0"
julientaq's avatar
julientaq committed
7
8
9
10
11
12
13
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"

[context.split1]
command = "hugo --gc --minify --enableGitInfo"

[context.split1.environment]
julientaq's avatar
julientaq committed
14
HUGO_VERSION = "0.80.0"
julientaq's avatar
julientaq committed
15
16
17
18
19
20
HUGO_ENV = "production"

[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
julientaq's avatar
julientaq committed
21
HUGO_VERSION = "0.62.2"
julientaq's avatar
julientaq committed
22
23
24
25
26

[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy.environment]
julientaq's avatar
julientaq committed
27
HUGO_VERSION = "0.62.2"
julientaq's avatar
julientaq committed
28
29

[context.next.environment]
julientaq's avatar
julientaq committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
HUGO_ENABLEGITINFO = "true"

# The following redirect is intended for use with most SPAs that handle
# routing internally.
[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200

[[headers]]
  # Define which paths this specific [[headers]] block will cover.
  for = "/*"
    [headers.values]
    Access-Control-Allow-Origin = "*"