Herbie Vine
Herbie Vine

Reputation: 2025

Is it safe to include the whole Firebase config file?

I just finished my Firebase app and am ready to deploy. Is it safe to deploy my app with the whole config settings that Firebase gave me or is there some unnecessary stuff in there? Here is the file:

const firebaseConfig = {
    apiKey: "<apiKey>",
    authDomain: "<authDomain>",
    databaseURL: "<databaseURL>",
    projectId: "<projectId>",
    storageBucket: "<storageBucket>",
    messagingSenderId: "<messagingSenderId>",
    appId: "<appId>",
    measurementId: "<measurementId>"
};

Right now it's in plain text on one of my JS files.

Thanks

Upvotes: 1

Views: 160

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317322

While you might not need every single config value, there's no need to edit things out. Just use it as is.

Upvotes: 1

Related Questions