forked from madrilene/lenesaile.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
61 lines (48 loc) · 1.19 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
# redirect to english, spanish or german landing pages.
[[redirects]]
from = "/"
to = "/de"
status = 302
force = true
conditions = {Language = ["de"]}
[[redirects]]
from = "/"
to = "/es"
status = 302
force = true
conditions = {Language = ["es"]}
[[redirects]]
from = "/"
to = "/en"
status = 302
force = true
# redirect the 404 pages to your specific variant.
[[redirects]]
from = "/de/*"
to = "/de/404"
status = 404
[[redirects]]
from = "/es/*"
to = "/es/404"
status = 404
[[redirects]]
from = "/en/*"
to = "/en/404"
status = 404
[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = [ ".cache" ]
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "upgrade-insecure-requests; block-all-mixed-content;"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "autoplay=(), camera=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), publickey-credentials-get=()"
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
[build]
command = "npm run build"
publish = "dist"