name = "xtablo-chat"
main = "src/index.ts"
compatibility_date = "2025-07-09"

[durable_objects]
bindings = [
  { name = "CHAT_ROOM", class_name = "ChatRoom" }
]

[[migrations]]
tag = "v1"
new_sqlite_classes = ["ChatRoom"]

[observability]
enabled = true

[vars]
SUPABASE_URL = "https://mhcafqvzbrrwvahpvvzd.supabase.co"

# Secrets (set via `wrangler secret put`):
# SUPABASE_SERVICE_ROLE_KEY
# JWT_SECRET

[[routes]]
pattern = "chat.xtablo.com"
custom_domain = true
