-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathnetlify.toml
42 lines (33 loc) · 972 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
42
[build]
publish = "public"
command = "hugo --minify -e cached"
[build.environment]
GO_VERSION = "1.14"
NODE_VERSION = "15.4.0"
HUGO_VERSION = "0.83.1"
TND_SITE_ID = "tnd-org"
[functions]
directory = "functions"
[context.production]
[context.production.environment]
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --minify -e cached -D -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_ENV = "staging"
[context.branch-deploy]
command = "hugo --minify -e cached -b $DEPLOY_URL"
[context.branch-deploy.environment]
HUGO_ENV = "staging"
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "upgrade-insecure-requests"
Strict-Transport-Security = "max-age=15768000"
X-Xss-Protection = "1; mode=block"
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Feature-Policy = "camera 'none'; geolocation 'none'; microphone 'none'"
[dev]
functions = "functions"