Skip to content

Commit

Permalink
🐛 (fixing-deployment) fixing private key on vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalsayed10 committed Jan 30, 2022
1 parent 29c40f9 commit db83137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/firebase-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (admin.apps.length === 0) {
admin.initializeApp({
credential: admin.credential.cert({
clientEmail: process.env.FIREBASE_CLIENT_EMAIL,
privateKey: process.env.FIREBASE_PRIVATE_KEY,
privateKey: process.env.FIREBASE_PRIVATE_KEY.replace(/\\n/g, "\n"),
projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID
})
});
Expand Down

1 comment on commit db83137

@vercel
Copy link

@vercel vercel bot commented on db83137 Jan 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.