-
Notifications
You must be signed in to change notification settings - Fork 27
/
netlify.toml
67 lines (64 loc) · 1.87 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
57
58
59
60
61
62
63
64
65
66
67
[context.deploy-preview.environment]
NODE_VERSION = '20.12.2'
NODE_ENV = 'development'
[build]
publish = "dist/"
command = '''
set -e
mkdir dist
echo 'User-agent: *' >> dist/robots.txt
echo 'Disallow: /' >> dist/robots.txt
cp public/* dist/
mv 2019/public dist/2019
mv 2021/public dist/2021
mv 2022/public dist/2022
mv 2023/public dist/2023
(cd 2024 && npm i && npm run build -- --prefix-paths --verbose && (mv public/2024 ../dist || mkdir ../dist/2024) && cp -r public/* ../dist/2024)
find dist
'''
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "deny"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "no-referrer"
Strict-Transport-Security = '''
max-age=31536000;
includeSubDomains;
preload
'''
Content-Security-Policy-Report-Only = '''
default-src 'self';
script-src 'self' 'unsafe-inline' maps.gstatic.com maps.googleapis.com google-analytics.com;
style-src 'self' 'unsafe-inline' fonts.googleapis.com;
img-src 'self' data: google-analytics.com/collect;
font-src 'self' fonts.gstatic.com;
connect-src 'self' google.com maps.googleapis.com;
frame-src google.com;
base-uri 'self';
form-action 'self';
object-src 'none';
worker-src 'none';
manifest-src 'self';
prefetch-src 'self';
'''
Permissions-Policy = '''
accelerometer=(none),
ambient-light-sensor=(none),
autoplay=(none),
camera=(none),
encrypted-media=(none),
fullscreen=(none),
geolocation=(none),
gyroscope=(none),
magnetometer=(none),
microphone=(none),
midi=(none),
payment=(none),
picture-in-picture=(none),
speaker=(none),
usb=(none),
vibrate=(none),
vr=(none)
'''