-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
55 lines (46 loc) · 1.51 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
[build]
publish = "dist"
command = "npm run build"
[context.production.environment]
BASKET_URL = "https://basket.mozilla.org"
[context.branch-deploy.environment]
BASKET_URL = "https://basket.allizom.org"
[context.deploy-preview.environment]
BASKET_URL = "https://basket.allizom.org"
[[headers]]
for = "/*"
[headers.values]
X-Content-Type-Options = "nosniff"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Cache-Control = "public,max-age=600"
# Content-Security-Policy = '''
# style-src 'self' 'unsafe-inline';
# default-src 'self' www.google-analytics.com;
# child-src 'self' www.youtube.com www.youtube-nocookie.com www.google-analytics.com;
# connect-src 'self' *.mozilla.org www.google-analytics.com;
# img-src 'self' data: www.google-analytics.com;
# # script-src 'self' 'unsafe-inline' 'unsafe-eval' s.ytimg.com www.youtube.com www.googletagmanager.com;
# '''
[[headers]]
for = "/fonts/*"
[headers.values]
# Temporary cache header change until we can get immutable files back
# Cache-Control = "max-age=31536000,public,immutable"
Cache-Control = "public,max-age=3600"
[[headers]]
for = "/css/*"
[headers.values]
Cache-Control = "max-age=31536000,public,immutable"
[[headers]]
for = "/img/*"
[headers.values]
Cache-Control = "max-age=31536000,public,immutable"
[[headers]]
for = "/scripts/*"
[headers.values]
Cache-Control = "max-age=31536000,public,immutable"
[[redirects]]
from = "/"
to = "/letter/"
force = true