Skip to content

How do I connect a Firebase project?

Updated 20 August 2026·1 views

Connecting Firebase

  1. Go to console.firebase.google.com, click Add project, and follow setup
  1. Enable Firestore Database in your project

Get your credentials

Firebase needs two separate credentials:
  • Service account — Project Settings → Service accounts → Generate new private key. Server-only, keep secret.
  • Web config — Project Settings → General → "Your apps" → copy the web SDK config object. Safe to expose to the browser.

Environment variables

\\\env NEXT_PUBLIC_DB_TYPE=firebase NEXT_DB_FIREBASE_SERVICE_ACCOUNT={"type":"service_account", ...} NEXT_PUBLIC_FIREBASE_CONFIG={"apiKey":"...", ...} NEXT_PUBLIC_FIREBASE_STORAGE_URL=your-project.appspot.com \\\ Underpeaks uses the Firebase Admin SDK, not the client SDK. Firestore free tier (Spark) allows 50k reads / 20k writes per day. Firebase doesn''t support SQL-style joins — relational queries are handled at the application layer.

Was this article helpful?