Files
leave-agent/wrangler.toml
purvarao 3da254d09a
Some checks failed
Cloudflare Worker API Template / Deploy to ${{ github.ref_name }} environment (pull_request) Failing after 15s
DB update
2025-11-27 20:07:20 +05:30

66 lines
2.1 KiB
TOML

# 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-db", database_id = "2b0088fa-a8a8-42e2-9565-f5dd8ede5558" }
]
# 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-db", database_id = "2b0088fa-a8a8-42e2-9565-f5dd8ede5558" }
]
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-db", database_id = "2b0088fa-a8a8-42e2-9565-f5dd8ede5558" }
]
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-db", database_id = "2b0088fa-a8a8-42e2-9565-f5dd8ede5558" }
]
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"