Admin Panel
Firebase Configuration
Enter your Firebase project credentials here to test the connection and generate a configuration file.
Security Warning
Never commit your `.env.local` file to a public repository. These keys are sensitive. The configuration should be saved in a `.env.local` file, not stored in the browser.
Fixing "auth/unauthorized-domain" Errors
If you see an "unauthorized-domain" error when using Google Sign-In, it means your application's domain is not whitelisted in Firebase. To fix this:
- Go to your Firebase Console.
- Navigate to Authentication → Settings tab → Authorized domains.
- Click Add domain and enter the domain where your app is running (e.g.,
localhostif running locally, or your deployed app's domain).
Using Emulators vs. Production
To switch between the local Firebase Emulators and your production Firebase backend, set the `NEXT_PUBLIC_USE_FIREBASE_EMULATORS` variable in your `.env.local` file to `true` or `false`. You must restart your development server after changing this value.