forked from hexojs/site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
47 lines (41 loc) · 1.24 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
[build]
command = "npm run build"
publish = "/public"
environment = { NODE_VERSION = "14", NODE_ENV = "production" }
[[redirects]]
from = "/"
to = "/zh-tw/"
status = 302
conditions = {Language = ["zh-tw", "zh-hk"]}
force = true
[[redirects]]
from = "/"
to = "/zh-cn/"
status = 302
conditions = {Language = ["zh", "zh-cn"]}
force = true
[[redirects]]
from = "/"
to = "/ru/"
status = 302
conditions = {Language = ["ru"]}
force = true
[[redirects]]
from = "/"
to = "/ko/"
status = 302
conditions = {Language = ["ko"]}
force = true
[[redirects]]
from = "/"
to = "/pt-br/"
status = 302
conditions = {Language = ["pt-br"]}
force = true
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Feature-Policy = "accelerometer 'none'; ambient-light-sensor 'none'; autoplay 'none'; camera 'none'; display-capture 'none'; document-domain 'none'; encrypted-media 'none'; fullscreen 'self'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; picture-in-picture 'none'; speaker 'none'; sync-xhr 'none'; usb 'none'; vibrate 'none'; wake-lock 'none'; webauthn 'none'"