Skip to content

Commit e196001

Browse files
Fixing google-services (copy into container w/ Dockerfile).
1 parent a5aa36e commit e196001

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ COPY --from=builder /app/package.json ./package.json
5353
COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml
5454
COPY --from=builder /app/dist ./dist
5555
COPY --from=builder /app/prisma ./prisma
56+
COPY --from=builder /app/google-services.json ./google-services.json
5657
COPY docker-entrypoint.sh .
5758

5859
# Ensure the entrypoint is executable

src/notifications/firebase.provider.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)