DEV Community

Discussion on: How to keep your Firebase project safe and secure from everyone

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Even if you don't use Firebase hosting, the config object is still there (in the frontend / client-side/ web browser), just obfuscated.

Collapse
 
retronav profile image
Pranav Karawale

Yes, and unfortunately developers add unnecessary abstractions to hide, which is sad. I hope this article will help them.

Collapse
 
sarveshtheabstractor profile image
Sarvesh Hiwase

I am currently using React and Firebase and deployed my app on Vercel there is no config object in the console or what'soever.

Collapse
 
retronav profile image
Pranav Karawale

Hi Sarvesh,
Are you using Next.js or some other framework for your app? It'll be helpful if you tell that.

Thread Thread
 
sarveshtheabstractor profile image
Sarvesh Hiwase

I am using create-react-app

Thread Thread
 
retronav profile image
Pranav Karawale

Hi Sarvesh,
You should try configuring your environment variables like mentioned in the docs (link)
You should also set those environment variables in Vercel (link)
After these steps and double-checking, it will work

Thread Thread
 
sarveshtheabstractor profile image
Sarvesh Hiwase

Really thanks bro

Thread Thread
 
retronav profile image
Pranav Karawale

You're welcome :)