molecule-core/infra/cloudflare-worker/wrangler.toml
Hongming Wang bfdb0e3b69 docs: Cloudflare Tunnel migration report + track Worker source
- Full session retrospective: tunnel E2E verified on prod + staging subdomains
- Worker source tracked in infra/cloudflare-worker/ (was only in /tmp)
- Worker changes: reserved slug passthrough + multi-level subdomain bypass
- Known issues, follow-ups, cost impact, key learnings documented

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-17 23:58:55 -07:00

20 lines
581 B
TOML

name = "molecule-tenant-proxy"
main = "src/index.ts"
compatibility_date = "2024-09-23"
account_id = "bfa4e604e168a938e565600b27e2828c"
# KV namespace for caching org→IP mappings (L2 cache, 5 min TTL)
[[kv_namespaces]]
binding = "TENANT_CACHE"
id = "752aaa0783514143a1eda9f44a412d7d"
# Route: all tenant subdomains (wildcard). Explicit records (api, app, www)
# take priority in Cloudflare DNS — the Worker only fires for tenant slugs.
[[routes]]
pattern = "*.moleculesai.app/*"
zone_id = "a034108eda16d131ef7f766b923ef464"
[vars]
CP_API_URL = "https://api.moleculesai.app"