# Base configuration (shared between environments) main = "src/index.ts" account_id = "cba4afd7666247724ece1f34e1aace6c" compatibility_date = "2025-03-10" compatibility_flags = ["nodejs_compat"] [vars] name = '-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 = "PROMPT_MANAGER_DB", database_name = "_test-db", database_id = "c020574a-5623-407b-be0c-cd192bab9545" } ] # Playtest Environment [env.playtest] name = "-playtest" routes = [ { pattern = ".playtest.svchub.com", custom_domain = true } ] d1_databases = [ { binding = "PROMPT_MANAGER_DB", database_name = "_playtest", database_id = "fd847b4b-e1e9-442e-9756-23c4540476e7" } ] r2_buckets = [ { binding = "PROMPT_MANAGER_BUCKET", bucket_name = "-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 = "-dev" routes = [ { pattern = ".dev.svchub.com", custom_domain = true } ] d1_databases = [ { binding = "PROMPT_MANAGER_DB", database_name = "_dev", database_id = "08a710a9-27ae-4886-9cab-c0a7ab204de9" } ] r2_buckets = [ { binding = "PROMPT_MANAGER_BUCKET", bucket_name = "-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 = "-prod" routes = [ { pattern = ".prod.svchub.com", custom_domain = true } ] d1_databases = [ { binding = "PROMPT_MANAGER_DB", database_name = "_prod", database_id = "2983ec1a-3c9c-451d-b85e-5a52ff9b114a" } ] r2_buckets = [ { binding = "PROMPT_MANAGER_BUCKET", bucket_name = "-prod" } ] [env.production.vars] WORKER_ENV = "production" CM_BASE_URL = "https://cm.svchub.com" DECRYPT_API_URL = "https://www.humanizeiq.ai/api/dashboard-backend"