Spaces:
Sleeping
Sleeping
| import { initializeApp, getApps } from "firebase/app"; | |
| import { getAuth } from "firebase/auth"; | |
| import { getFirestore } from "firebase/firestore"; | |
| const firebaseConfig = { | |
| apiKey: "AIzaSyD0gjMSH04oiyUIjqTiUs3zuLkW7UP1x-s", | |
| authDomain: "erpjsf.firebaseapp.com", | |
| projectId: "erpjsf", | |
| storageBucket: "erpjsf.firebasestorage.app", | |
| messagingSenderId: "996985286814", | |
| appId: "1:996985286814:web:7e02e9a31da1deac638b8f" | |
| }; | |
| // Initialize Firebase | |
| const app = getApps().length === 0 ? initializeApp(firebaseConfig) : getApps()[0]; | |
| const auth = getAuth(app); | |
| const db = getFirestore(app); | |
| export { app, auth, db }; | |