create db config

This commit is contained in:
Chase Manning 2023-10-16 18:45:11 +01:00
commit e693ea98b9

17
src/app/db.ts Normal file
View file

@ -0,0 +1,17 @@
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
const firebaseConfig = {
apiKey: "AIzaSyDsS3qmLF4mHn8irsGzqUCYh9Pm872RGUE",
authDomain: "lien-pokemon.firebaseapp.com",
projectId: "lien-pokemon",
storageBucket: "lien-pokemon.appspot.com",
messagingSenderId: "2050363386",
appId: "1:2050363386:web:c1d4cf61c9e657bb9b1e43",
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
// Initialize Cloud Firestore and get a reference to the service
export const db = getFirestore(app);