Guide

Firebase troubleshooting

Common local and staging failures.

Guided diagnosis

Firebase setup issues

Choose the failure mode.
Question 1
Question 1

Where does it fail?

auth/invalid-api-key in the browser

Client config is empty or wrong for the environment. Prefer letting the module skip init rather than forcing credentials on alpha. Check PRC_PLATFORM_FIREBASE_* vs *__DEV selection in class-assets.php.

Server SDK cannot initialize

Missing or wrong firebase-service-account.json under WPCOM_VIP_PRIVATE_DIR. Regenerate for the target env:

bash ./bin/setup/generate-firebase-service-account.sh --env production
npm run gen:firebase-sa

Legacy vs modern mismatch

New work should import @prc/firebase. Older interactives still enqueue the firebase handle and expect window.firebase globals.

Was this helpful?