-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
43 lines (38 loc) · 1.29 KB
/
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
43
[build]
publish = "public"
command = "hugo --gc --minify"
[build.environment]
HUGO_VERSION = "0.121.2"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
NODE_VERSION = "20.12.2"
[[headers]]
for = "*.jpg"
[headers.values]
Cache-Control = "max-age=31536000, immutable"
[[headers]]
for = "*.webp"
[headers.values]
Cache-Control = "max-age=31536000, immutable"
[[headers]]
for = "/css/*"
[headers.values]
Cache-Control = "max-age=31536000, immutable"
[[headers]]
for = "/*"
[headers.values]
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
# Content-Security-Policy = "default-src 'self'; img-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "no-referrer-when-downgrade"
Feature-Policy = "microphone 'none'; payment 'none'; geolocation 'none'"
Permissions-Policy = "camera=(), geolocation=(), microphone=()"
# Access-Control-Allow-Origin = "*"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[[context.production.plugins]]
package = "netlify-plugin-submit-sitemap"