We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4306eb7 commit a5aa36eCopy full SHA for a5aa36e
1 file changed
src/notifications/firebase.provider.ts
@@ -14,7 +14,9 @@ export const FIREBASE_ADMIN = 'FIREBASE_ADMIN';
14
export const FirebaseProvider: Provider = {
15
provide: FIREBASE_ADMIN,
16
useFactory: () => {
17
- const serviceAccountPath = path.resolve(process.cwd(), 'google-services.json');
+ // Use process.cwd() and append '/../../google-services.json' to find project root file
18
+ const serviceAccountPath = path.resolve(process.cwd(), '../../google-services.json');
19
+ console.log('[FirebaseProvider] Looking for service account at:', serviceAccountPath);
20
if (!fs.existsSync(serviceAccountPath)) {
21
console.error('[FirebaseProvider] google-services.json not found in project root.');
22
throw new Error('google-services.json not found in project root');
0 commit comments