-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the firebase, and its configuration in the .env file
- Loading branch information
1 parent
11e63d7
commit fec8d9a
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
REACT_APP_FIREBASE_API_KEY="" | ||
REACT_APP_FIREBASE_AUTH_DOMAIN="" | ||
REACT_APP_FIREBASE_PROJECT_ID="" | ||
REACT_APP_FIREBASE_STORAGE_BUCKET="" | ||
REACT_APP_FIREBASE_MESSAGING_SENDER_ID="" | ||
REACT_APP_FIREBASE_APP_ID="" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Import the functions you need from the SDKs you need | ||
import { initializeApp } from "firebase/app"; | ||
// TODO: Add SDKs for Firebase products that you want to use | ||
// https://firebase.google.com/docs/web/setup#available-libraries | ||
|
||
// Your web app's Firebase configuration | ||
export const firebaseConfig = { | ||
apiKey: process.env.REACT_APP_FIREBASE_API_KEY, | ||
authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN, | ||
projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID, | ||
storageBucket: process.env.REACT_APP_FIREBASE_STORAGE_BUCKET, | ||
messagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID, | ||
appId: process.env.REACT_APP_FIREBASE_APP_ID, | ||
}; | ||
|
||
// Initialize Firebase | ||
const app = initializeApp(firebaseConfig); | ||
|
||
export default app; |