Configuration Protocol
Overview
This document defines how to configure the Singular Dream environment, manage secrets, and control external integrations.
1. Secrets Management (Doppler)
We use Doppler for centralized secret management. Do not store sensitive keys in .env files committed to the repository.
Prerequisite
Ensure the Doppler CLI is installed and you are logged in:
Injection
To run the application with full secrets injected:
Checking Secrets
To verify if a specific secret is available in your current scope:
2. Environment Variables (.env.local)
Local overrides should be placed in .env.local. This file is git-ignored.
Required Keys
| Key | Description |
|---|---|
NEXT_PUBLIC_FIREBASE_PROJECT_ID |
Must be set to singular-dream-dev for Emulator usage. |
NEXT_PUBLIC_FIREBASE_API_KEY |
Public API key. |
TWILIO_ACCOUNT_SID |
(Injected via Doppler) |
TWILIO_AUTH_TOKEN |
(Injected via Doppler) |
3. External Integrations
3.1 Twilio (SMS)
- Purpose: Vendor Authentication.
- Credential Source: Doppler (
sd-condoproject). - Verification:
You can verify the Twilio connection using the
verify-twilio.jsscript (if available) or via curl:
3.2 Firebase (Identity & Data)
- Local Emulator: Default for development.
- Production: Live Firebase instance.
- Switching: Controlled by
NEXT_PUBLIC_FIREBASE_PROJECT_ID.
Version History
| Version | Date | Author | Change |
|---|---|---|---|
| 0.1.0 | 2026-01-29 | Antigravity | Initial Audit & Metadata Injection |