name = "ely-browser-cloud"
main = "src/index.ts"
compatibility_date = "2026-05-08"
compatibility_flags = ["nodejs_als"]

[[d1_databases]]
binding = "ELY_DB"
database_name = "elydora-browser-db"
database_id = "ef2b6080-cd3e-46ff-b1ba-1b143731519a"
migrations_dir = "migrations"

[[r2_buckets]]
binding = "ELY_STORAGE"
bucket_name = "ely-browser-storage"

[[kv_namespaces]]
binding = "ELY_KV"
id = "ba8f06dd5cc34bc4bc0f8a305c570cfb"

[[send_email]]
name = "SEND_EMAIL"
allowed_sender_addresses = ["auth@elydora.com"]

[vars]
ELY_ENVIRONMENT = "production"
ELY_AUTH_BASE_URL = "https://ely-browser-cloud.zhangyanghaha0407.workers.dev"

[[analytics_engine_datasets]]
binding = "ELY_API_AUDIT"
dataset = "ely_api_audit"

[[analytics_engine_datasets]]
binding = "ELY_DIAGNOSTICS"
dataset = "ely_diagnostics"

[[ratelimits]]
name = "ELY_RATE_LIMITER"
namespace_id = "1001"

  [ratelimits.simple]
  limit = 600
  period = 60
