-
Notifications
You must be signed in to change notification settings - Fork 5
/
netlify.toml
56 lines (49 loc) · 1.5 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
44
45
46
47
48
49
50
51
52
53
54
55
56
[build]
publish = "public"
command = "hugo --gc --minify"
[build.environment]
HUGO_VERSION = "0.124.1"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
NODE_VERSION = "19.9.0"
NODE_ENV = "development"
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = '''
default-src 'self';
script-src 'self' https://cdnjs.cloudflare.com/ https://*.googletagmanager.com/;
style-src 'self' 'unsafe-inline';
object-src 'none';
base-uri 'self';
connect-src 'self' https://*.google-analytics.com/ https://*.analytics.google.com/ https://*.googletagmanager.com/;
font-src 'self';
frame-src 'self';
img-src 'self' https://*.google-analytics.com/ https://*.googletagmanager.com/;
manifest-src 'self';
media-src 'self';
worker-src 'none';
frame-ancestors 'none';
'''
Referrer-Policy = "strict-origin-when-cross-origin"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
[[plugins]]
package = "@netlify/plugin-lighthouse"
# optional, fails build when a category is below a threshold
[plugins.inputs.thresholds]
performance = 0.9
accessibility = 0.9
best-practices = 0.9
seo = 0.9
pwa = 0
# optional, deploy the lighthouse report to a path under your site
[plugins.inputs]
output_path = "reports/lighthouse.html"
[[plugins]]
package = "netlify-plugin-hugo-cache-resources"