Created
June 25, 2019 02:30
-
-
Save jonahallibone/6888341c0ce194bd4e606648be87c060 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import firebase from "firebase"; | |
| const initFirebase = () => { | |
| const firebaseConfig = { | |
| apiKey: process.env.REACT_APP_API_KEY, | |
| authDomain: process.env.REACT_APP_AUTH_DOMAIN, | |
| databaseURL: process.env.REACT_APP_DATABASE_URL, | |
| projectId: process.env.REACT_APP_PROJECT_ID, | |
| storageBucket: process.env.REACT_APP_STORAGE_BUCKET, | |
| messagingSenderId: process.env.REACT_APP_MESSAGING_SENDER_ID, | |
| appId: process.env.REACT_APP_APP_ID | |
| }; | |
| firebase.initializeApp(firebaseConfig); | |
| } | |
| export {initFirebase}; | |
| export default firebase; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment