Created
August 17, 2022 17:51
-
-
Save vaibhavgehani/04d6b05f6d111238560ae12504959b44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { initializeApp } from 'firebase/app'; | |
import { initializeFirestore } from 'firebase/firestore'; | |
const firebaseConfig = { | |
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", | |
authDomain: "xxxxxxx.firebaseapp.com", | |
projectId: "xxxxxxxxxx", | |
storageBucket: "xxxxxxxxxxx.appspot.com", | |
messagingSenderId: "xxxxxxxxxxxxx", | |
appId: "xxxxxxxxxxxxxxxxxxxxxxxxxx", | |
measurementId: "xxxxxxxxxxxx" | |
}; | |
const app = initializeApp(firebaseConfig); | |
const db = initializeFirestore(app, {experimentalForceLongPolling: true}); | |
export { | |
db, | |
app | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment