-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathnetlify.toml
41 lines (33 loc) · 892 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
37
38
39
40
41
[functions]
directory = "functions"
[build]
publish = "public"
command = "hugo --gc"
[build.environment]
HUGO_VERSION = "0.91.2"
GO_VERSION = "1.16.5"
NODE_VERSION = "16.16.0"
[context.production.environment]
# Uncomment the next line when moving site to production
HUGO_ENV = "production"
#HUGO_ENABLEGITINFO = "true"
[context.deploy-preview]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_ENV = "staging"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_ENV = "staging"
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/"
[headers.values]
Access-Control-Allow-Origin = "*"
[dev]
functions = "functions"
publish = "public"
framework = "#custom"
command = "npm run start"
port = 8888
targetPort = 1313