Skip to content

Commit 4d53f3b

Browse files
committed
Fixes
1 parent d3753e9 commit 4d53f3b

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ firestore-debug.log
2525
storage-debug.log
2626
ui-debug.log
2727
.firebase/
28+
firebase-export-*
2829

2930
# ---- Environment / Secrets ----
3031
*.pem

lib/firebase/admin.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { getFirestore } from "firebase-admin/firestore";
44

55
if (process.env.NODE_ENV === "development") {
66
process.env.FIRESTORE_EMULATOR_HOST = "localhost:8080";
7+
process.env.FIREBASE_AUTH_EMULATOR_HOST = "localhost:9099";
8+
process.env.FIREBASE_STORAGE_EMULATOR_HOST = "localhost:9199";
79
}
810

911
if (getApps().length === 0) {

lib/firebase/auth-edge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export const authConfig = {
1414
serviceAccount: {
1515
projectId: process.env.FIREBASE_PROJECT_ID!,
1616
clientEmail: process.env.FIREBASE_CLIENT_EMAIL!,
17-
privateKey: process.env.FIREBASE_PRIVATE_KEY!.replace(/\\n/g, "\n"),
17+
privateKey: process.env.FIREBASE_PRIVATE_KEY!,
1818
},
1919
};

0 commit comments

Comments
 (0)