code-server/cursor-fullstack/cloudflare/wrangler.toml
Cursor Agent be0f50b10c feat: Add observability to Cloudflare backend
Configure wrangler.toml and deploy a new backend worker with observability enabled.

Co-authored-by: fekofal332 <fekofal332@reaxu.com>
2025-10-13 10:43:46 +00:00

56 lines
No EOL
1.2 KiB
TOML

name = "cursor-backend"
main = "backend/index.js"
compatibility_date = "2024-01-01"
[env.production]
name = "cursor-backend"
[env.staging]
name = "cursor-backend-staging"
# Durable Objects for WebSocket
[durable_objects]
bindings = [
{ name = "WEBSOCKET_DO", class_name = "WebSocketDurableObject" }
]
# Migrations for Durable Objects
[[migrations]]
tag = "v1"
new_classes = [ "WebSocketDurableObject" ]
# KV Storage for API keys and session data
[[kv_namespaces]]
binding = "API_KEYS"
id = "2a705b445979465ca3d65b117b90411a"
preview_id = "2a705b445979465ca3d65b117b90411a"
[[kv_namespaces]]
binding = "FILE_STORAGE_KV"
id = "cae71ccff3df4039996865e01758f53f"
preview_id = "cae71ccff3df4039996865e01758f53f"
[[kv_namespaces]]
binding = "SESSIONS"
id = "cfc6ab0d08e24421bb602b2d96f5b8ac"
preview_id = "cfc6ab0d08e24421bb602b2d96f5b8ac"
# R2 Storage for file storage (commented out until R2 is enabled)
# [[r2_buckets]]
# binding = "FILE_STORAGE"
# bucket_name = "cursor-files"
# preview_bucket_name = "cursor-files-preview"
# Environment variables
[vars]
ENVIRONMENT = "production"
CORS_ORIGIN = "*"
# Observability settings
[observability]
enabled = false
[observability.logs]
enabled = true
head_sampling_rate = 1
invocation_logs = true