chore: add comments
This commit is contained in:
parent
592b82ccd4
commit
000d6645a3
1 changed files with 3 additions and 4 deletions
|
@ -3,9 +3,9 @@ import 'firebase/firestore';
|
|||
|
||||
export class DatabaseService {
|
||||
constructor() {
|
||||
// keys to interact with firebase
|
||||
// not a secret: https://stackoverflow.com/questions/37482366/is-it-safe-to-expose-firebase-apikey-to-the-public/37484053#37484053
|
||||
// but better moved to an environment variable
|
||||
// necessary keys to interact with firebase
|
||||
// not a secret
|
||||
// https://stackoverflow.com/questions/37482366/is-it-safe-to-expose-firebase-apikey-to-the-public/37484053#37484053
|
||||
const config = {
|
||||
apiKey: "AIzaSyAbDzNHCSFh59e3r5sZA4_2ZHJnJ6SCCxM",
|
||||
authDomain: "moment-188701.firebaseapp.com",
|
||||
|
@ -17,6 +17,5 @@ export class DatabaseService {
|
|||
};
|
||||
firebase.initializeApp(config);
|
||||
this.store = firebase.firestore();
|
||||
console.log('>>>', process.env.APP_ENVIRONMENT);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue