name = "server-recommend"
main = "src/index.ts"
compatibility_date = "2025-01-23"
compatibility_flags = ["nodejs_compat"]
workers_dev = true

# Workers AI binding
[ai]
binding = "AI"

# D1 Database binding (cloud-instances-db: 1,119 servers)
[[d1_databases]]
binding = "DB"
database_name = "cloud-instances-db"
database_id = "bbcb472d-b25e-4e48-b6ea-112f9fffb4a8"

# KV Cache binding for rate limiting and response caching
[[kv_namespaces]]
binding = "CACHE"
id = "c68cdb477022424cbe4594f491390c8a"

# Observability
[observability]
enabled = true
