plugin: add hexo-esbuild, hexo-htmlnano (#2172)
[hexo-site.git] / netlify.toml
blob5996d26c2cce6b684b422f1f34896f777fe8b59a
1 [build]
2   command = "npm run build"
3   publish = "/public"
4   environment = { NODE_VERSION = "14", NODE_ENV = "production" }
6 [[redirects]]
7   from = "/"
8   to = "/zh-tw/"
9   status = 302
10   conditions = {Language = ["zh-tw", "zh-hk"]}
11   force = true
13 [[redirects]]
14   from = "/"
15   to = "/zh-cn/"
16   status = 302
17   conditions = {Language = ["zh", "zh-cn"]}
18   force = true
20 [[redirects]]
21   from = "/"
22   to = "/ru/"
23   status = 302
24   conditions = {Language = ["ru"]}
25   force = true
27 [[redirects]]
28   from = "/"
29   to = "/ko/"
30   status = 302
31   conditions = {Language = ["ko"]}
32   force = true
34 [[redirects]]
35   from = "/"
36   to = "/pt-br/"
37   status = 302
38   conditions = {Language = ["pt-br"]}
39   force = true
41 [[headers]]
42   for = "/*"
43   [headers.values]
44     X-Frame-Options = "DENY"
45     X-XSS-Protection = "1; mode=block"
46     X-Content-Type-Options = "nosniff"
47     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'"