diff --git a/src/firebase.js b/src/firebase.js index 9649117..2dee48a 100644 --- a/src/firebase.js +++ b/src/firebase.js @@ -1,13 +1,13 @@ -import firebase from 'firebase/app'; -import 'firebase/database'; -import 'firebase/storage'; import * as admin from 'firebase-admin'; var serviceAccount = require('./keys/marten-application-firebase-adminsdk-zvjmp-c177ac648f.json'); -const firebaseApp = admin.initializeApp({ - credential: admin.credential.cert(serviceAccount), - databaseURL: 'https://marten-application.firebaseio.com' - }); +const firebaseConfig = { + credential: admin.credential.cert(serviceAccount), + databaseURL: "https://marten-application.firebaseio.com", + storageBucket: "marten-application.appspot.com" +}; -export default firebase; \ No newline at end of file +const firebaseApp = admin.initializeApp(firebaseConfig); + +export default 'firebase-admin'; \ No newline at end of file