DEV Community

Discussion on: Firebase as simple database to React app

Collapse
 
jhuleatt profile image
Jeff

It is safe to include the config in your app. The Firebase docs address this:

A Firebase config file or config object associates your app with your Firebase project and its resources (databases, storage buckets, etc.).

The content is considered public, including your platform-specific ID (entered in the Firebase console setup workflow) and values that are specific to your Firebase project, like your API Key, Realtime Database URL, and Storage bucket name. Given this, use security rules to protect your data and files in Realtime Database, Cloud Firestore, and Cloud Storage.