forked from betatim/five
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
67 lines (55 loc) · 1.7 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
62
63
64
65
66
# Production context:
# All deploys from the main repository branch
# will inherit these settings.
[context.production]
command = "yarn generate-prod"
# Deploy Preview context:
# All deploys generated from a pull/merge request
# will inherit these settings.
[context.deploy-preview]
command = "yarn generate-staging"
# Branch deploy context:
# All deploys that are not from a pull/merge request
# or from the production branch will inherit these settings.
[context.branch-deploy]
command = "yarn generate-staging"
# More specific redirect to catch production
[[redirects]]
from = "https://www.videoident.me/api/*"
to = "https://seven.videoident.me/api/:splat"
status = 200
signed = "PROXY_REQUEST_KEY"
[[redirects]]
from = "/api/*"
to = "https://seven-staging.videoident.me/api/:splat"
status = 200
signed = "PROXY_REQUEST_KEY"
[[headers]]
# path to font
for = "/_nuxt/fonts/48cfe38.woff2"
[headers.values]
Access-Control-Allow-Origin = "https://js.stripe.com"
# Redirect to appropriate region and language based on ip location and browser language
# The redirects engine will process the first matching rule it finds, reading from top to bottom.
# https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
# If browser is in English, show CH/EN page
# [[redirects]]
# from = "/"
# to = "/ch/en"
# status = 301
# conditions = {Language = ["en"]}
# Otherwise, display CH/DE page
# [[redirects]]
# from = "/"
# to = "/ch/de"
# status = 301
# Temporary agressive redirect. No matter the url, you always end up at /ch/de
[[redirects]]
from = "/ch/en/"
to = "/ch/de"
force = true
status = 302
[[redirects]]
from = "/*"
to = "/ch/de"
status = 302