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>
This commit is contained in:
maverick 2026-07-21 21:48:53 +10:00
parent 328b3c53df
commit 48866acc97

View file

@ -12,9 +12,9 @@ DEFAULT_LON = "150.3119"
DEFAULT_LAT = "-33.7300" DEFAULT_LAT = "-33.7300"
DEFAULT_RADIUS_M = "1000" DEFAULT_RADIUS_M = "1000"
# D1 is optional for the demo (falls back to the live simulator when empty). # D1: stores real drone surveys/detections. Falls back to the live simulator
# Uncomment + set database_id after: wrangler d1 create critterscope # when no ?survey=<id> is requested or the id isn't found.
# [[d1_databases]] [[d1_databases]]
# binding = "DB" binding = "DB"
# database_name = "critterscope" database_name = "critterscope"
# database_id = "REPLACE_ME" database_id = "03814d82-cab0-4f2a-860a-2faf31742960"