Skip to content

Commit

Permalink
👌 IMPROVE: env local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
justEhmadSaeed committed Jan 6, 2022
1 parent 0252d28 commit 5abfa75
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/firebase/firebase.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import firebase from 'firebase';

var firebaseConfig = {
apiKey: "AIzaSyANZi6Xc7B1_14-RfEJ7KV9b9nkcZL2DqY",
authDomain: "quizdom-70da5.firebaseapp.com",
projectId: "quizdom-70da5",
storageBucket: "quizdom-70da5.appspot.com",
messagingSenderId: "706147557425",
appId: "1:706147557425:web:40f7062e5aee9a84743510",
measurementId: "G-RE88729T4B"
};
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
projectId: process.env.REACT_APP_PROJECT_ID,
storageBucket: process.env.REACT_APP_STORAGE_BUCKET,
messagingSenderId: process.env.REACT_APP_SENDER_ID,
appId: process.env.REACT_APP_APP_ID
};

firebase.initializeApp(firebaseConfig);
firebase.analytics();
Expand Down

0 comments on commit 5abfa75

Please sign in to comment.