DEV Community

How to add Firebase service account json files to Vercel

Vincent Voyer on August 24, 2021

If you're using Firebase, Next.js, Vercel, firebase-admin, and if you've been Googling for the past hour on how to load your Google service account...
Collapse
 
iamrahulrnair profile image
Rahul R

Man u saved my day!!!

Collapse
 
eullerpeixoto profile image
Euller Peixoto

Hey, thanks a lot! You're now my hero! xD

Collapse
 
aiisawesome profile image
ai-is-awesome

I just created my account here to say THANK YOU. I've been stuck on deployment due to google's weird way of implementing apis. I literally had to create a new private repo and push my credentials json there to test the deployment but I was still getting file not found error for some reason. Tried your way and it fixed so many problems, no need to maintain a json file and the deployment worked too!

Collapse
 
valentin_wikoti_d28a28f80 profile image
valentin wikoti

NEVER PASTE YOUR PRIVATE KEYS IN A 3RD PARTY APPPPPPP!!!!!!!!!!
This post should be removed or edited immediately, this is a huge security issue you are asking the readers to do. The owners of textfixer.com/tools/remove-line-br... can store and use your private key as they wish. Give them your house keys if you are at it... OMFG!!!!

Collapse
 
pablomdd profile image
Pablo Domínguez Durán

This was really helpful. My use-case was more into a GoogleApi but the key concepts remain the same. Thanks!

Collapse
 
offchan profile image
Chanchana Sornsoontorn

Works like a charm

Collapse
 
brisstone profile image
Okoli Johnson

nice, saved me stress!

Collapse
 
mirozone profile image
Amir

Thank you alot

Collapse
 
nachpok profile image
Nachliel

Your a lifesaver

Collapse
 
pawanjacharya profile image
Pawan Acharya • Edited

Thanks alot , i got stuck for 2 days just trying find ways to add servcieAccountKey.

Collapse
 
abdurrehman1998 profile image
abdurrehman1998

Very Good, been looking for it. Thanks