79442631

Date: 2025-02-16 05:32:22
Score: 0.5
Natty:
Report link

edit firebase.js

import { initializeApp } from "firebase/app";
import { getFirestore, initializeFirestore } from "firebase/firestore";

const firebaseConfig = {
    apiKey: "xxxxxxxxxxxxxxxx",
    authDomain: "xxxxx-xxxxx.firebaseapp.com",
    projectId: "xxxxx-xxxx",
    storageBucket: "xxxx-xxxxx.appspot.com",
    messagingSenderId: "123456789",
    appId: "1:1111111111111:web:xxxxxxx",
    measurementId: "x-xxxxxxx"
};

export const app = initializeApp(firebaseConfig);
const db = initializeFirestore(app, {
    experimentalForceLongPolling: true
});

export default db;
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bilal Sabugar