/
netlify.toml
160 lines (142 loc) · 3.72 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[build]
publish = "dist/"
command = ". scripts/app.sh"
edge_functions = "packages/edge-functions/src/"
[build.environment]
NODE_ENV = "development"
NPM_FLAGS="--prefix=/dev/null"
# Production context: all deploys from the Production branch set in your site’s
# deploy contexts will inherit these settings.
[context.production]
environment = { NETLIFY_CONTEXT = "production" }
# Deploy Preview context: all deploys generated from a pull/merge request will
# inherit these settings.
[context.deploy-preview]
environment = { NETLIFY_CONTEXT = "deploy-preview" }
# 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]
environment = { NETLIFY_CONTEXT = "branch-deploy" }
[[edge_functions]]
path = "/api/v1/lookup_location"
function = "lookup_location"
[[edge_functions]]
path = "/api/v1/api.json"
function = "api"
[[plugins]]
package = "@netlify/plugin-sitemap"
[plugins.inputs]
exclude = [
'./404.html',
'./share/index.html',
'./email/**/*',
]
# Redirects and headers are GLOBAL for all builds – they do not get scoped to
# contexts no matter where you define them in the file.
# For context-specific rules, use _headers or _redirects files, which are
# PER-DEPLOY.
[[redirects]]
from = "https://hibus.plus/*"
to = "https://app.hawaiibusplus.com/share/:splat"
status = 301
force = true
[[redirects]]
from = "https://hawaiibus.plus/*"
to = "https://app.hawaiibusplus.com/:splat"
status = 301
force = true
[[redirects]]
from = "/share/index.html"
to = "/404.html"
status = 301
force = true
# Redirect from old custom Route IDs to new Hele-On IDs
[[redirects]]
from = "/routes/hilo-kona/"
to = "/routes/1/"
status = 301
[[redirects]]
from = "/routes/hilo-volcano/"
to = "/routes/10/"
status = 301
[[redirects]]
from = "/routes/hilo-pahala/"
to = "/routes/40/"
status = 301
[[redirects]]
from = "/routes/hilo-honokaa/"
to = "/routes/60/"
status = 301
[[redirects]]
from = "/routes/kohala-resort/"
to = "/routes/70/"
status = 301
[[redirects]]
from = "/routes/kohala-kona/"
to = "/routes/75/"
status = 301
[[redirects]]
from = "/routes/hilo-resort/"
to = "/routes/80/"
status = 301
[[redirects]]
from = "/routes/pahala-kona/"
to = "/routes/90/"
status = 301
[[redirects]]
from = "/routes/hilo-keaukaha/"
to = "/routes/101/"
status = 301
[[redirects]]
from = "/routes/hilo-kaumana/"
to = "/routes/102/"
status = 301
[[redirects]]
from = "/routes/hilo-waikea/"
to = "/routes/103/"
status = 301
[[redirects]]
from = "/routes/hilo-waimea/"
to = "/routes/105/"
status = 301
[[redirects]]
from = "/routes/kona/"
to = "/routes/201/"
status = 301
[[redirects]]
from = "/routes/waimea/"
to = "/routes/301/"
status = 301
# The following redirects are intended for use with most SPAs that handle
# routing internally.
[[redirects]]
from = "/directions/*"
to = "/index.html"
status = 200
[[redirects]]
from = "/routes/*"
to = "/index.html"
status = 200
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/assets/*"
[headers.values]
Cache-Control = "max-age=31536000,immutable"
[[headers]]
for = "/api/*"
[headers.values]
Cross-Origin-Resource-Policy = "same-origin"
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin"
Cross-Origin-Opener-Policy = "same-origin"
Permissions-Policy = '''geolocation=(self),
camera=(),
microphone=(),
usb=(),
interest-cohort=()'''