-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
46 lines (42 loc) · 1.16 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
[build]
publish = "public/"
command = "npm run build && npm run build:fonts && npm run build:views"
[build.environment]
NODE_ENV = "production"
TRANSLATION_PREFIX = "/api/staging/i18n"
# Redirect default Netlify subdomain to primary domain
[[redirects]]
from = "https://smartbirds.netlify.com/*"
to = "https://next.smartbirds.org/:splat"
status = 301
force = true
[[redirects]]
from = "https://smartbirds-staging.netlify.com/*"
to = "https://staging.smartbirds.org/:splat"
status = 301
force = true
# proxy staging api requests
[[redirects]]
from = "/api/staging/*"
to = "https://smartbirds-staging.herokuapp.com/api/:splat"
status = 200
# proxy production api requests
[[redirects]]
from = "/api/*"
to = "https://smartbirds.org/api/:splat"
status = 200
# proxy staging statistics
[[redirects]]
from = "/stats/staging/*"
to = "https://smartbirds-staging.herokuapp.com/:splat"
status = 200
# proxy production statistics
[[redirects]]
from = "/stats/*"
to = "https://smartbirds.org/:splat"
status = 200
# SPA routing
[[redirects]]
from = "*"
to = "/index.html"
status = 200