22 lines
805 B
TypeScript
22 lines
805 B
TypeScript
// Import the functions you need from the SDKs you need
|
|
import { initializeApp } from "firebase/app";
|
|
import { getFirestore } from "firebase/firestore";
|
|
// TODO: Add SDKs for Firebase products that you want to use
|
|
// https://firebase.google.com/docs/web/setup#available-libraries
|
|
|
|
// Your web app's Firebase configuration
|
|
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
|
|
const firebaseConfig = {
|
|
apiKey: process.env.apiKey,
|
|
authDomain: process.env.authDomain,
|
|
projectId: process.env.projectId,
|
|
storageBucket: process.env.storageBucket,
|
|
messagingSenderId: process.env.messagingSenderId,
|
|
appId: process.env.appId,
|
|
measurementId: process.env.measurementId
|
|
};
|
|
|
|
// Initialize Firebase
|
|
const app = initializeApp(firebaseConfig);
|
|
const db = getFirestore(app);
|
|
export { app, db }; |