Skip to content

Instantly share code, notes, and snippets.

@dipeshhkc
Last active May 22, 2021 09:51
Show Gist options
  • Save dipeshhkc/381dd80cdbc6fdd472ff3b1305c5b49e to your computer and use it in GitHub Desktop.
Save dipeshhkc/381dd80cdbc6fdd472ff3b1305c5b49e to your computer and use it in GitHub Desktop.
import firebase from "firebase/app";
import 'firebase/analytics';
const firebaseConfig = {
apiKey: '***************',
authDomain: '**************',
projectId: '**************',
storageBucket: '*******************',
messagingSenderId: '****************',
appId: '*******************',
measurementId: '**********',
};
if (!firebase.apps.length) {
firebase.initializeApp(firebaseConfig);
}
const analytics = firebase.analytics;
export { firebase, analytics };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment