Skip to content

Configuration

apps/core-api/ reads the following at runtime:

VariablePurpose
FIREBASE_PROJECT_IDFirebase project to authenticate against.
FIREBASE_STORAGE_BUCKETGCS bucket for audio uploads.
ADMIN_SERVICE_ACCOUNT_JSONService account JSON for Firebase Admin (production).
VOXPOP_USE_EMULATORWhen true, talks to the local Firebase emulators.
ALLOWED_ORIGINSComma-separated CORS allowlist for browser-direct calls to /api/v1/*.
LOG_LEVELpino log level. Defaults to info.

The hosted production deploy at api.phonicfactory.com uses Firebase App Hosting. See apphosting.yaml at the repo root for the production config and apps/core-api/README.md for deploy notes.

Other targets (Cloud Run, Fly.io, self-hosted Node) work too — core-api is a plain Node service, no platform-specific dependencies.