1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-10-20 07:56:11 +02:00
Files
php-web-maker/src/firebaseInit.js
2024-05-10 15:10:10 +05:30

29 lines
790 B
JavaScript

import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
import {
initializeFirestore,
persistentLocalCache,
persistentMultipleTabManager
} from 'firebase/firestore';
import { getStorage } from 'firebase/storage';
const config = {
apiKey: 'AIzaSyBl8Dz7ZOE7aP75mipYl2zKdLSRzBU2fFc',
authDomain: 'web-maker-app.firebaseapp.com',
databaseURL: 'https://web-maker-app.firebaseio.com',
projectId: 'web-maker-app',
storageBucket: 'web-maker-app.appspot.com',
messagingSenderId: '560473480645'
};
const app = initializeApp(config);
export { app };
export const auth = getAuth(app);
export const storage = getStorage(app);
export const db = initializeFirestore(app, {
localCache: persistentLocalCache({
tabManager: persistentMultipleTabManager()
})
});