Skip to content

Instantly share code, notes, and snippets.

@vaibhavgehani
Created August 17, 2022 17:51
Show Gist options
  • Save vaibhavgehani/04d6b05f6d111238560ae12504959b44 to your computer and use it in GitHub Desktop.
Save vaibhavgehani/04d6b05f6d111238560ae12504959b44 to your computer and use it in GitHub Desktop.
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