-
Notifications
You must be signed in to change notification settings - Fork 35
/
netlify.toml
48 lines (39 loc) · 1.11 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
#https://stackoverflow.com/questions/58065603/netlify-renders-404-on-page-refresh-using-react-and-react-router
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/ambient-token-list.json"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/testnet-token-list.json"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/icons/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/screenshots/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/scroll-badge/*"
[headers.values]
Access-Control-Allow-Origin = "*"
Cache-Control = "public, max-age=31536000, immutable"
[[edge_functions]]
path = "/*"
function = "country-block"
[[edge_functions]]
path = "/*"
function = "country-redirect"
[build]
command = "npm run build && cp src/ambient-utils/constants/ambient-token-list.json src/ambient-utils/constants/testnet-token-list.json build/"
publish = "build"