34 lines
775 B
TOML
34 lines
775 B
TOML
|
|
# Interview Bot - Cloudflare Worker Configuration
|
||
|
|
name = "interviewer-bot"
|
||
|
|
main = "src/index.ts"
|
||
|
|
compatibility_date = "2024-12-01"
|
||
|
|
compatibility_flags = ["nodejs_compat"]
|
||
|
|
|
||
|
|
# AI Binding for Workers AI (routed through AI Gateway)
|
||
|
|
[ai]
|
||
|
|
binding = "AI"
|
||
|
|
|
||
|
|
# Optional: Configure AI Gateway for analytics, caching, rate limiting
|
||
|
|
# Uncomment and set your gateway ID to enable:
|
||
|
|
# [ai.gateway]
|
||
|
|
# id = "your-gateway-id"
|
||
|
|
|
||
|
|
# KV Namespace for storing interviews
|
||
|
|
[[kv_namespaces]]
|
||
|
|
binding = "INTERVIEWS"
|
||
|
|
id = "your-kv-namespace-id"
|
||
|
|
preview_id = "your-preview-kv-namespace-id"
|
||
|
|
|
||
|
|
# Development settings
|
||
|
|
[dev]
|
||
|
|
port = 8787
|
||
|
|
local_protocol = "http"
|
||
|
|
|
||
|
|
# Environment variables (optional)
|
||
|
|
[vars]
|
||
|
|
ENVIRONMENT = "development"
|
||
|
|
|
||
|
|
# Production overrides
|
||
|
|
[env.production]
|
||
|
|
vars = { ENVIRONMENT = "production" }
|