From 48866acc973b642b2fbe64db160d6109a609d219 Mon Sep 17 00:00:00 2001 From: maverick Date: Tue, 21 Jul 2026 21:48:53 +1000 Subject: [PATCH] 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) --- wrangler.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wrangler.toml b/wrangler.toml index ef04822..bb35150 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -12,9 +12,9 @@ DEFAULT_LON = "150.3119" DEFAULT_LAT = "-33.7300" DEFAULT_RADIUS_M = "1000" -# D1 is optional for the demo (falls back to the live simulator when empty). -# Uncomment + set database_id after: wrangler d1 create critterscope -# [[d1_databases]] -# binding = "DB" -# database_name = "critterscope" -# database_id = "REPLACE_ME" +# D1: stores real drone surveys/detections. Falls back to the live simulator +# when no ?survey= is requested or the id isn't found. +[[d1_databases]] +binding = "DB" +database_name = "critterscope" +database_id = "03814d82-cab0-4f2a-860a-2faf31742960"