SERVER CONFIGURATION ERROR

The application backend failed to start. This is a critical error that prevents the app from running.

Error Details:

CRITICAL: Firebase Admin SDK initialization failed. Check your server logs for the specific error. This is most likely due to missing or malformed Firebase credentials in your .env file.

Most Common Cause & Solution:

This error is almost always caused by missing or incorrectly formatted Firebase Admin credentials in your .env file.

Please ensure you have set the following three variables from your Firebase service account JSON file:

# In your .env file, ensure these values are set correctly.
# The private_key value MUST be enclosed in double quotes.
FIREBASE_PROJECT_ID=your-project-id
FIREBASE_CLIENT_EMAIL=firebase-adminsdk-xxxxx@...
FIREBASE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n"

After correcting the .env file, the application should restart and work correctly.