aboutsummaryrefslogtreecommitdiffstats
path: root/panel/src/firebase.js
diff options
context:
space:
mode:
Diffstat (limited to 'panel/src/firebase.js')
-rw-r--r--panel/src/firebase.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/panel/src/firebase.js b/panel/src/firebase.js
new file mode 100644
index 0000000..c56f4e0
--- /dev/null
+++ b/panel/src/firebase.js
@@ -0,0 +1,20 @@
+import { initializeApp } from 'firebase/app';
+import { getAuth } from 'firebase/auth';
+import { getFirestore } from 'firebase/firestore';
+import { getStorage } from 'firebase/storage';
+
+const firebaseConfig = {
+ apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
+ authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
+ projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
+ storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,
+ messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
+ appId: import.meta.env.VITE_FIREBASE_APP_ID,
+};
+
+const app = initializeApp(firebaseConfig);
+const auth = getAuth(app);
+const db = getFirestore(app);
+const storage = getStorage(app);
+
+export { auth, db, storage };