-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnetlify.toml
81 lines (68 loc) · 1.45 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
[build]
command = "./run.sh build:prod"
functions = "functions"
publish = "dist"
[build.environment]
GO_IMPORT_PATH = "github.com/spotlightpa/almanack"
GO111MODULE = "on"
NODE_VERSION = "20"
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/almanack-api/:splat"
force = true
status = 200
[[redirects]]
from = "/api-background/*"
to = "/.netlify/functions/almanack-api-background/:splat"
force = true
status = 200
[[redirects]]
from = "/ssr/*"
to = "/.netlify/functions/almanack-api/:splat"
conditions = { Role = ["admin"]}
force = true
status = 200
[[redirects]]
from = "/ssr/*"
to = "/.netlify/functions/almanack-api/:splat"
conditions = { Role = ["Spotlight PA"]}
force = true
status = 200
[[redirects]]
from = "/ssr/*"
to = "/.netlify/functions/almanack-api/:splat"
conditions = { Role = ["editor"]}
force = true
status = 200
[[redirects]]
from = "/ssr/*"
to = "/login"
force = true
status = 302
[[redirects]]
from = "/login"
to = "/index.html"
status = 200
force = false
[[redirects]]
from = "/admin/*"
to = "/index.html"
status = 200
force = false
[[redirects]]
from = "/articles/*"
to = "/index.html"
status = 200
force = false
[[redirects]]
from = "/shared-articles/*"
to = "/index.html"
status = 200
force = false
[[redirects]]
from = "/*"
to = "/index.html"
status = 404
force = false
[functions.schedule]
schedule = "*/3 * * * *" # Every three minutes