Skip to content

Commit a5aa36e

Browse files
Fixed path for google-services.json.
1 parent 4306eb7 commit a5aa36e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/notifications/firebase.provider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export const FIREBASE_ADMIN = 'FIREBASE_ADMIN';
1414
export const FirebaseProvider: Provider = {
1515
provide: FIREBASE_ADMIN,
1616
useFactory: () => {
17-
const serviceAccountPath = path.resolve(process.cwd(), 'google-services.json');
17+
// 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);
1820
if (!fs.existsSync(serviceAccountPath)) {
1921
console.error('[FirebaseProvider] google-services.json not found in project root.');
2022
throw new Error('google-services.json not found in project root');

0 commit comments

Comments
 (0)