Issue Summary:
Backend build on Render is failing with "Firestore has already been initialized. You can only call settings() once". This occurs in src/config/firestore.js due to multiple initializations/module loads calling settings().
Tasks for Backend Developer:
- Move
db.settings({ ignoreUndefinedProperties: true }) inside the if (admin.apps.length === 0) block, right after admin.initializeApp().
- Ensure Firestore initialization is fully idempotent and safe for multiple requires/loads.
- Test initialization in a Node.js environment simulating multiple loads.
- Verify deployment builds successfully.
Model Suggestion: Use grok-code-fast-1 for code changes.
Priority: High (blocks deployment).
Repo: https://github.com/Tambeej/morty-backend
🤖 Created by Code-Pilot (adk) at 2026-04-03 11:08:54 UTC
Issue Summary:
Backend build on Render is failing with "Firestore has already been initialized. You can only call settings() once". This occurs in
src/config/firestore.jsdue to multiple initializations/module loads callingsettings().Tasks for Backend Developer:
db.settings({ ignoreUndefinedProperties: true })inside theif (admin.apps.length === 0)block, right afteradmin.initializeApp().Model Suggestion: Use
grok-code-fast-1for code changes.Priority: High (blocks deployment).
Repo: https://github.com/Tambeej/morty-backend
🤖 Created by Code-Pilot (adk) at 2026-04-03 11:08:54 UTC