diff --git a/.env.sample b/.env.sample index 6fcd6da..c87fa56 100644 --- a/.env.sample +++ b/.env.sample @@ -1 +1,9 @@ -REACT_APP_API_KEY=gh_xxxxxxxx... \ No newline at end of file +REACT_APP_API_KEY=gh_xxxxxxxx..., +REACT_APP_FIRBASE_API_KEY='AIzaSyDs-rxvOLmskYhudQWPOxl-whELlKKUYhs', +REACT_APP_AUTHDOMAIN="issue-finder.firebaseapp.com", +REACT_APP_PROJECTID='issue-finder', +REACT_APP_STORAGEBUCKET='issue-finder.appspot.com', +REACT_APP_MSG_SENDERID='918268898722', +REACT_APP_APPID='1:918268898722:web:653b04454a9eee41d896fb', +REACT_APP_MEASUREMENTID='G-C28740E7D5' + diff --git a/src/utility/firebase.js b/src/utility/firebase.js index 7f560fb..1a9a4ad 100644 --- a/src/utility/firebase.js +++ b/src/utility/firebase.js @@ -8,13 +8,13 @@ import { getAnalytics } from 'firebase/analytics'; // Your web app's Firebase configuration // For Firebase JS SDK v7.20.0 and later, measurementId is optional const firebaseConfig = { - apiKey: 'AIzaSyDs-rxvOLmskYhudQWPOxl-whELlKKUYhs', - authDomain: 'issue-finder.firebaseapp.com', - projectId: 'issue-finder', - storageBucket: 'issue-finder.appspot.com', - messagingSenderId: '918268898722', - appId: '1:918268898722:web:653b04454a9eee41d896fb', - measurementId: 'G-C28740E7D5' + apiKey:process.env.REACT_APP_FIRBASE_API_KEY, + authDomain: process.env.REACT_APP_AUTHDOMAIN, + projectId: process.env.REACT_APP_PROJECTID, + storageBucket:process.env.REACT_APP_STORAGEBUCKET, + messagingSenderId:process.env.REACT_APP_MSG_SENDERID, + appId: process.env.REACT_APP_APPID, + measurementId: process.env.REACT_APP_MEASUREMENTID }; // Initialize Firebase