-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnetlify.toml
More file actions
49 lines (40 loc) · 1.06 KB
/
netlify.toml
File metadata and controls
49 lines (40 loc) · 1.06 KB
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
# netlify.toml
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "SAMEORIGIN"
[build]
command = "npm run build"
publish = "dist"
environment = { NODE_VERSION = "24.3.0" }
# Keep existing redirects for custom functions
[[redirects]]
from = "/api/account/:account/balance"
to = "/.netlify/functions/account_balance/:account"
status = 200
force = true
[[redirects]]
from = "/api/wallet/create"
to = "/.netlify/functions/wallet_create"
status = 200
force = true
[[redirects]]
from = "/api/wallet/derive-from-mnemonic"
to = "/.netlify/functions/wallet_derive_from_mnemonic"
status = 200
force = true
[[redirects]]
from = "/api/wallet/send"
to = "/.netlify/functions/wallet_send"
status = 200
force = true
[[redirects]]
from = "/api/tools/encode16bit/from_string/:fee"
to = "/.netlify/functions/encode_fee/:fee"
status = 200
force = true
# Optional: Functions config (e.g., increase timeout)
[functions]
node_bundler = "esbuild"
[functions."api__proxy"]
timeout = 15 # Seconds, adjust if needed for slow proxies