aboutsummaryrefslogtreecommitdiff
path: root/web/api/wrangler.toml
blob: 29feff1d47853ffc9ae430456bf36818009322d0 (plain)
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
name = "tidyindex-api"
main = "src/index.ts"
compatibility_date = "2026-04-01"
compatibility_flags = ["nodejs_compat"]

# Deploy the public route. Uncomment once the zone + DNS are wired up.
# workers_dev = false
# routes = [
#   { pattern = "api.tidyindex.com/*", zone_name = "tidyindex.com" }
# ]

# Vars / secrets are loaded from .dev.vars locally and `wrangler secret put`
# in production. DATABASE_URL points at Neon (or Postgres via Hyperdrive).
# [vars]
# (none yet)

# KV namespace for hashed-key → account cache. Create with:
#   wrangler kv namespace create KEY_CACHE
# [[kv_namespaces]]
# binding = "KEY_CACHE"
# id = "REPLACE_ME"

# Per-account rate-limit + usage buffer Durable Object. Wired up once
# the AccountMeter class lands.
# [[durable_objects.bindings]]
# name = "ACCOUNT_METER"
# class_name = "AccountMeter"
#
# [[migrations]]
# tag = "v1"
# new_classes = ["AccountMeter"]