2025-07-04 14:31:04 +09:00

23 lines
834 B
TypeScript

// Import the functions you need from the SDKs you need
import { initializeApp, getApp, getApps } from "firebase/app";
import { getAuth } from "firebase/auth";
import { getFirestore } from "firebase/firestore";
// import { getAnalytics } from "firebase/analytics";
const firebaseConfig = {
apiKey: "AIzaSyAgtJrmsFWG1C7m9S55HyT1laICEzuUS2g",
authDomain: "pickle-3651a.firebaseapp.com",
projectId: "pickle-3651a",
storageBucket: "pickle-3651a.firebasestorage.app",
messagingSenderId: "904706892885",
appId: "1:904706892885:web:0e42b3dda796674ead20dc",
measurementId: "G-SQ0WM6S28T"
};
// Initialize Firebase
const app = !getApps().length ? initializeApp(firebaseConfig) : getApp();
const auth = getAuth(app);
const firestore = getFirestore(app);
// const analytics = getAnalytics(app);
export { app, auth, firestore };