forked from avocadotoastlive/avocadotoast.live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
52 lines (46 loc) · 968 Bytes
/
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
[build]
command = "yarn build"
publish = "_site/"
[[redirects]]
from = "/"
to = "/cn/"
status = 200
conditions = {Country = ["CN"]}
force = true
[[redirects]]
from = "/episodes/*"
to = "/cn/episodes/:splat"
status = 200
conditions = {Country = ["CN"]}
force = true
[[redirects]]
from = "/"
to = "/us/"
status = 200
conditions = {Country = ["US"]}
force = true
[[redirects]]
from = "/episodes/*"
to = "/us/episodes/:splat"
status = 200
conditions = {Country = ["US"]}
force = true
[[redirects]]
from = "https://avocadotoast.netlify.com/*"
to = "https://avocadotoast.live/:splat"
status = 301
force = true
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
[[headers]]
for = "/"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
[[headers]]
for = "/episodes/:placeholder/"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"