mongog setup
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import { initializeApp } from 'firebase/app'
|
||||
import { getAuth, GoogleAuthProvider } from 'firebase/auth'
|
||||
import { getFirestore, connectFirestoreEmulator } from 'firebase/firestore'
|
||||
|
||||
const firebaseConfig = {
|
||||
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
|
||||
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
|
||||
databaseURL: import.meta.env.VITE_FIREBASE_DATABASE_URL,
|
||||
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
|
||||
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,
|
||||
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
|
||||
@@ -14,14 +12,6 @@ const firebaseConfig = {
|
||||
|
||||
const app = initializeApp(firebaseConfig)
|
||||
|
||||
// Auth initialization
|
||||
// Google Auth initialization
|
||||
export const auth = getAuth(app)
|
||||
export const googleProvider = new GoogleAuthProvider()
|
||||
|
||||
// Firestore initialization
|
||||
export const db = getFirestore(app)
|
||||
|
||||
// Enable Firestore emulator in development (uncomment when testing locally)
|
||||
// if (import.meta.env.DEV) {
|
||||
// connectFirestoreEmulator(db, 'localhost', 8080)
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user