doc: initialize firebase

This commit is contained in:
Leon Xu committed 2022-02-22 13:24:15 -08:00
1 parent fc6e3fdc66
commit 431a24081a
1 file changed
+14
+14
View File
@@ -0,0 +1,14 @@
import firebase from "firebase/app";
import "firebase/firestore";
const firebaseConfig = {
apiKey: process.env.VUE_APP_FIREBASE_API_KEY,
authDomain: "weatherapp-cn.firebaseapp.com",
projectId: "weatherapp-cn",
storageBucket: "weatherapp-cn.appspot.com",
messagingSenderId: "755459847225",
appId: "1:755459847225:web:1248c7d8654336d02ac9e8",
};
// Initialize Firebase
const firebaseApp = firebase.initializeApp(firebaseConfig);
export default firebaseApp.firestore();