The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import * as Cloudflare from "@alchemy.run/cloudflare"; |
| 2 | |
| 3 | /** |
| 4 | * The KV namespaces behind the API. Each Worker binds only the access it |
| 5 | * needs: Products reads the catalog, Admin writes it, Orders reads the |
| 6 | * catalog and owns the orders. |
| 7 | */ |
| 8 | export const Catalog = Cloudflare.KV.Namespace("Catalog"); |
| 9 | export const OrderBook = Cloudflare.KV.Namespace("OrderBook"); |
| 10 | |
| 11 | /** |
| 12 | * The public hostname. Every Worker below is served under it — the custom |
| 13 | * domain owns the hostname (DNS + TLS) and zone routes peel off paths. |
| 14 | */ |
| 15 | export const HOSTNAME = process.env.API_HOSTNAME ?? "api.example.com"; |