File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ COPY --from=builder /app/package.json ./package.json
5353COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml
5454COPY --from=builder /app/dist ./dist
5555COPY --from=builder /app/prisma ./prisma
56+ COPY --from=builder /app/google-services.json ./google-services.json
5657COPY docker-entrypoint.sh .
5758
5859# Ensure the entrypoint is executable
Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ export const FirebaseProvider: Provider = {
1717 // Use process.cwd() and append '/../../google-services.json' to find project root file
1818 const serviceAccountPath = path . resolve ( process . cwd ( ) , '../../google-services.json' ) ;
1919 console . log ( '[FirebaseProvider] Looking for service account at:' , serviceAccountPath ) ;
20+ const parentDir = path . dirname ( serviceAccountPath ) ;
21+ try {
22+ const files = fs . readdirSync ( parentDir ) ;
23+ console . log ( `[FirebaseProvider] Files in ${ parentDir } :` , files ) ;
24+ } catch ( err ) {
25+ console . error ( `[FirebaseProvider] Failed to list files in ${ parentDir } :` , err ) ;
26+ }
2027 if ( ! fs . existsSync ( serviceAccountPath ) ) {
2128 console . error ( '[FirebaseProvider] google-services.json not found in project root.' ) ;
2229 throw new Error ( 'google-services.json not found in project root' ) ;
You can’t perform that action at this time.
0 commit comments