-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseConfig.js
More file actions
26 lines (22 loc) · 982 Bytes
/
firebaseConfig.js
File metadata and controls
26 lines (22 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import {getFirestore} from "firebase/firestore";
import { getStorage } from "firebase/storage";
// 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.NEXT_PUBLIC_FIREBASE_KEY,
authDomain: "messenger-eb3a9.firebaseapp.com",
projectId: "messenger-eb3a9",
storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE,
messagingSenderId: "495103966813",
appId: "1:495103966813:web:f11a08d1348798d262d7b4",
measurementId: "G-7K3Z5T3KBM"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
export const db = getFirestore(app);
// Initialize Cloud Storage and get a reference to the service
export const storage = getStorage(app);