ai-code-battle/worker-api/wrangler.toml
jedarden 24859669fc Complete D1 database schema and migrations for Phase 6
- Add missing tables: predictions, predictor_stats, map_votes,
  replay_feedback, series, series_games, seasons
- Add evolution fields to bots table (evolved, island, generation,
  parent_ids, description)
- Add additional fields to maps table (player_count, energy_nodes,
  wall_density, status, engagement_score)
- Create migrations/0001_initial.sql for D1 migrations
- Update wrangler.toml with migrations_dir config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 09:52:53 -04:00

24 lines
563 B
TOML

name = "acb-api"
main = "src/index.ts"
compatibility_date = "2025-03-10"
compatibility_flags = ["nodejs_compat"]
[[d1_databases]]
binding = "DB"
database_name = "acb-db"
database_id = "placeholder-will-be-set-on-deploy"
migrations_dir = "migrations"
[vars]
ENVIRONMENT = "development"
[triggers]
crons = [
"*/1 * * * *", # Matchmaker: every minute
"*/5 * * * *", # Stale job reaper: every 5 minutes
"*/15 * * * *" # Health checker: every 15 minutes
]
# API key for worker authentication (set via wrangler secret put API_KEY)
# [secrets]
# API_KEY