File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ export const FIREBASE_ADMIN = 'FIREBASE_ADMIN';
1414export 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' ) ;
You can’t perform that action at this time.
0 commit comments