# Base configuration (shared between environments) main = "src/index.ts" account_id = "cba4afd7666247724ece1f34e1aace6c" compatibility_date = "2025-03-10" compatibility_flags = ["nodejs_compat"] [vars] name = 'leave-agent-local' CM_BASE_URL = "https://cm.dev.svchub.com" DECRYPT_API_URL = "https://www.dev.humanizeiq.ai/api/dashboard-backend" DECRYPT_API_KEY = "XMCKhjOTTPJJzoSiNTmRTcQauvtGKRnUZNFlhWpjhTEaIdIeIdLFM" d1_databases= [ { binding = "LEAVE_AGENT_DB", database_name = "leave-agent_test-db", database_id = "c020574a-5623-407b-be0c-cd192bab9545" } ] # Playtest Environment [env.playtest] name = "leave-agent-playtest" routes = [ { pattern = "leave-agent.playtest.svchub.com", custom_domain = true } ] d1_databases = [ { binding = "LEAVE_AGENT_DB", database_name = "leave-agent_playtest", database_id = "fd847b4b-e1e9-442e-9756-23c4540476e7" } ] r2_buckets = [ { binding = "LEAVE_AGENT_BUCKET", bucket_name = "leave-agent-playtest" } ] [env.playtest.vars] WORKER_ENV = "playtest" CM_BASE_URL = "https://cm.dev.svchub.com" DECRYPT_API_URL = "https://www.dev.humanizeiq.ai/api/dashboard-backend" # Dev Environment [env.development] name = "leave-agent-dev" routes = [ { pattern = "leave-agent.dev.svchub.com", custom_domain = true } ] d1_databases = [ { binding = "LEAVE_AGENT_DB", database_name = "leave-agent_dev", database_id = "08a710a9-27ae-4886-9cab-c0a7ab204de9" } ] r2_buckets = [ { binding = "LEAVE_AGENT_BUCKET", bucket_name = "leave-agent-dev" } ] [env.development.vars] WORKER_ENV = "development" CM_BASE_URL = "https://cm.dev.svchub.com" DECRYPT_API_URL = "https://www.dev.humanizeiq.ai/api/dashboard-backend" # Production Environment [env.production] name = " leave-agent-prod" routes = [ { pattern = "leave-agent.prod.svchub.com", custom_domain = true } ] d1_databases = [ { binding = "LEAVE_AGENT_DB", database_name = "leave-agent_prod", database_id = "2983ec1a-3c9c-451d-b85e-5a52ff9b114a" } ] r2_buckets = [ { binding = "LEAVE_AGENT_BUCKET", bucket_name = "leave-agent-prod" } ] [env.production.vars] WORKER_ENV = "production" CM_BASE_URL = "https://cm.svchub.com" DECRYPT_API_URL = "https://www.humanizeiq.ai/api/dashboard-backend"