forked from breadsplit/breadsplit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
59 lines (44 loc) · 1.18 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
# https://www.netlify.com/docs/netlify-toml-reference/
[build]
base = ""
publish = "packages/client/dist/"
command = "npm run generate"
[build.environment]
GOOGLE_GTAG_ID = "UA-139660905-1" # dev gtag
RELEASE_CHANNEL = "dev"
FIREBASE_SERVER = "development"
SENTRY_DSN = "https://[email protected]/1457153"
# "app" branch
[context.app.environment]
GOOGLE_GTAG_ID = "UA-139660905-3" # prod gtag
RELEASE_CHANNEL = "beta"
FIREBASE_SERVER = "production"
# "website" branch
[context.website]
base = ""
publish = "packages/website/dist"
command = "npm run web:generate"
[context.website.environment]
GOOGLE_GTAG_ID = "UA-139660905-5" # website gtag
# "docs" branch
[context.docs]
base = ""
publish = "packages/docs/.vuepress/dist/"
command = "npm run docs:build"
[context.docs.environment]
GOOGLE_GTAG_ID = "UA-139660905-4" # docs gtag
# Redirects
[[redirects]]
from = "https://breadsplit.netlify.com/*"
to = "https://breadsplit.com/:splat"
status = 301
force = true
[[redirects]]
from = 'https://docs.breadsplit.com/*'
to = '/:splat'
status = 200
force = true
[[redirects]]
from = '/*'
to = '/index.html'
status = 200