Spaces:
Running
Running
import { initializeApp } from "firebase/app" | |
import { connectAuthEmulator, getAuth } from "firebase/auth" | |
import { connectFirestoreEmulator, getFirestore } from "firebase/firestore" | |
const firebaseConfig = { | |
apiKey: "AIzaSyC5b6N6A1fFxdUyWdZh0RqxvfdM--YD8P0", | |
authDomain: "signal-9546d.firebaseapp.com", | |
projectId: "signal-9546d", | |
storageBucket: "signal-9546d.appspot.com", | |
messagingSenderId: "312735607354", | |
appId: "1:312735607354:web:78b487832370b170e32303", | |
} | |
const app = initializeApp(firebaseConfig) | |
export const auth = getAuth(app) | |
export const firestore = getFirestore(app) | |
if (process.env.NODE_ENV !== "production") { | |
connectAuthEmulator(auth, "http://localhost:9099") | |
connectFirestoreEmulator(firestore, "localhost", 8080) | |
} | |