forked from go-faast/faast-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
89 lines (72 loc) · 1.99 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Netlify global settings applied to the whole site.
#
# “base” is the directory to change to before starting build. If you set base:
# that is where we will look for package.json/.nvmrc/etc, not repo root!
# “command” is your build command.
# “publish” is the directory to publish (relative to the root of your repo).
[build]
command = "npm run build"
publish = "dist/"
functions = "build/lambda"
[build.environment]
NETLIFY = "true"
NODE_ENV = "production"
[context.production]
[context.production.environment]
DEPLOY_ENV = "production"
SITE_ROOT = "https://faa.st"
[context.staging]
[context.staging.environment]
DEPLOY_ENV = "staging"
SITE_ROOT = "https://staging.faast.us"
API_URL = "https://testapi.faa.st"
[context.develop]
[context.develop.environment]
DEPLOY_ENV = "develop"
### Main single page app
[[redirects]]
from = "/app/*"
to = "/app/index.html"
status = 200
### Path aliases for convencience
[[redirects]]
from = "/portfolio/*"
to = "/app/:splat"
status = 301
[[redirects]]
from = "/swap/*"
to = "/app/swap/:splat"
status = 301
[[redirects]]
from = "/affiliates/*"
to = "/app/affiliates/:splat"
status = 301
[[redirects]]
from = "/blog/*"
to = "https://medium.com/faast/:splat"
status = 301
### Path aliases for convencience
[[redirects]]
from = "/knowledge/*"
to = "https://faast-kb-prod.herokuapp.com/knowledge/:splat"
status = 200
[[redirects]]
from = "/*/what-is-an-ico"
to = "/knowledge/article/what-is-the-difference-between-an-ico-ito-and-ipo"
status = 200
[[redirects]]
from = "/*/what-are-smart-contracts"
to = "/knowledge/article/what-are-smart-contracts"
status = 200
[[redirects]]
from = "/*/what-is-a-dao"
to = "/knowledge/article/what-is-a-dao"
status = 200
[[redirects]]
from = "/*/what-is-ethereum"
to = "/knowledge/article/what-is-ethereum"
status = 200
[[redirects]]
from = "/*/what-is-an-ico"
to = "/knowledge/article/what-is-an-ico"
status = 200