drones/wrangler.toml
maverick 48866acc97 Enable live D1 for real drone survey ingest
- Created remote D1 (region OC), bound in wrangler.toml (id 03814d82...)
- Remote schema initialized; live ingest + readback verified (simulated:false)
- Deploy uses Workers token; D1 ops use the D1-capable token

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 21:48:53 +10:00

20 lines
690 B
TOML

name = "critterscope"
main = "src/index.js"
compatibility_date = "2024-11-01"
compatibility_flags = ["nodejs_compat"]
routes = [{ pattern = "critterscope.theradicalparty.com", custom_domain = true }]
[vars]
BASE_URL = "https://critterscope.theradicalparty.com"
# Default map center [lon, lat] and survey radius (metres). Override per-survey via ?lat=&lon=&r=
DEFAULT_LON = "150.3119"
DEFAULT_LAT = "-33.7300"
DEFAULT_RADIUS_M = "1000"
# D1: stores real drone surveys/detections. Falls back to the live simulator
# when no ?survey=<id> is requested or the id isn't found.
[[d1_databases]]
binding = "DB"
database_name = "critterscope"
database_id = "03814d82-cab0-4f2a-860a-2faf31742960"