mirror of
https://github.com/chinchang/web-maker.git
synced 2025-10-21 16:36:06 +02:00
update firebase to 10
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import firebase from 'firebase/app';
|
||||
// import 'firebase/firestore';
|
||||
import { initializeApp } from 'firebase/app';
|
||||
import { getAuth } from 'firebase/auth';
|
||||
import { getFirestore } from 'firebase/firestore';
|
||||
|
||||
const config = {
|
||||
apiKey: 'AIzaSyBl8Dz7ZOE7aP75mipYl2zKdLSRzBU2fFc',
|
||||
authDomain: 'web-maker-app.firebaseapp.com',
|
||||
@@ -8,4 +10,9 @@ const config = {
|
||||
storageBucket: 'web-maker-app.appspot.com',
|
||||
messagingSenderId: '560473480645'
|
||||
};
|
||||
firebase.initializeApp(config);
|
||||
|
||||
const app = initializeApp(config);
|
||||
export { app };
|
||||
|
||||
export const auth = getAuth(app);
|
||||
export const db = getFirestore(app);
|
||||
|
Reference in New Issue
Block a user