Skip to content

Commit

Permalink
Merge pull request #41 from infoshareacademy/MaciejKufel
Browse files Browse the repository at this point in the history
Maciej kufel
  • Loading branch information
HalynaRiabokonenko authored Feb 25, 2024
2 parents 2276b91 + 922b306 commit d2acde0
Show file tree
Hide file tree
Showing 6 changed files with 920 additions and 13 deletions.
1 change: 1 addition & 0 deletions my-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ dist-ssr
*.njsproj
*.sln
*.sw?
.env.local
15 changes: 15 additions & 0 deletions my-app/firebase-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { getFirestore } from 'firebase/firestore'
import { initializeApp } from "firebase/app";


export const firebaseConfig = {
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
authDomain: import.meta.env.VITE_AUTH_DOMAIN,
projectId: import.meta.env.VITE_PROJECT_ID,
storageBucket: import.meta.env.VITE_STORAGE_BUCKET,
messagingSenderId: import.meta.env.VITE_FIREBASE_MSG_SENDER_ID,
appId: import.meta.env.VITE_FIREBASE_APP_ID
};

const app = initializeApp(firebaseConfig);
export const db = getFirestore(app);
Loading

0 comments on commit d2acde0

Please sign in to comment.