Files
hash-wallet-prices/wrangler.toml
T

24 lines
761 B
TOML

name = "hash-wallet-prices"
main = "src/index.ts"
compatibility_date = "2026-05-14"
workers_dev = true
# KV namespace for cached prices.
# Run `wrangler kv:namespace create PRICES` once, then paste the returned id below.
# (The script also works without KV — it falls back to fetching upstream on each request.)
[[kv_namespaces]]
binding = "PRICES"
id = "REPLACE_ME_WITH_KV_NAMESPACE_ID"
# Run the refresh every 60 seconds.
# Cloudflare cron triggers fire once per minute at minimum.
[triggers]
crons = ["* * * * *"]
# Custom domain. Will be auto-bound to neroswap.com's DNS zone via the
# Cloudflare Workers UI when you "Add Custom Domain" — you do NOT create a
# CNAME manually for this.
[[routes]]
pattern = "prices.neroswap.com"
custom_domain = true