20 lines
679 B
JavaScript
20 lines
679 B
JavaScript
import { initializeApp } from 'firebase/app';
|
|
import { getAuth } from 'firebase/auth';
|
|
import { getFirestore } from 'firebase/firestore';
|
|
|
|
// TODO: Replace with your actual Firebase project configuration.
|
|
// Get this from Firebase Console > Project Settings > General > Your apps > Web app
|
|
const firebaseConfig = {
|
|
apiKey: "YOUR_API_KEY",
|
|
authDomain: "YOUR_PROJECT_ID.firebaseapp.com",
|
|
projectId: "YOUR_PROJECT_ID",
|
|
storageBucket: "YOUR_PROJECT_ID.firebasestorage.app",
|
|
messagingSenderId: "YOUR_SENDER_ID",
|
|
appId: "YOUR_APP_ID",
|
|
};
|
|
|
|
const app = initializeApp(firebaseConfig);
|
|
export const auth = getAuth(app);
|
|
export const db = getFirestore(app);
|
|
export default app;
|