From a278e2215a9bc730f533b1ec3b5f001c2975d4bc Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 23 Aug 2026 02:37:43 -0400 Subject: [PATCH] Pin the Firestore deploy target to the c2-server database firebase.json declared rules and indexes with no database key, so the CLI deploys them to (default). This project does not use (default) -- c2-core reads FIRESTORE_DATABASE and the frontend reads NEXT_PUBLIC_FIRESTORE_DATABASE, both c2-server in production, and the index-required errors the browser prints name /databases/c2-server/ outright. A deploy without this key reports success and changes nothing the app can see, which is a bad way to find out. Refs server-26#13. Co-Authored-By: Claude Opus 5 --- infra/firestore/firebase.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/firestore/firebase.json b/infra/firestore/firebase.json index 639d24d..12c2918 100644 --- a/infra/firestore/firebase.json +++ b/infra/firestore/firebase.json @@ -1,6 +1,8 @@ { "//": "Deploy target for firestore.rules / firestore.indexes.json only — this is not a Firebase Hosting project config. Run from this directory: firebase deploy --only firestore:rules,firestore:indexes --project . No project id is pinned here deliberately (see [[self-hosted-infra-pointers]] for where that value lives) — pass --project explicitly or run `firebase use ` once first.", "firestore": { + "//": "database MUST be pinned. This project does not use the (default) Firestore database — drb-c2-core reads FIRESTORE_DATABASE and drb-frontend reads NEXT_PUBLIC_FIRESTORE_DATABASE, both 'c2-server' in production, and the index-required errors the browser prints name /databases/c2-server/ explicitly. Without this key the CLI deploys rules and indexes to (default), reports success, and changes nothing the app can see.", + "database": "c2-server", "rules": "firestore.rules", "indexes": "firestore.indexes.json" }