Skip to content

Commit 1170cda

Browse files
committed
environment variable added
1 parent faf0733 commit 1170cda

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "mannat-tour-service"
4+
}
5+
}

firebase.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "build",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}

src/firebase/firebase.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { initializeApp } from "firebase/app";
55

66
// Your web app's Firebase configuration
77
const firebaseConfig = {
8-
apiKey: "AIzaSyDn_HMRZjdijpDCZBJK7G0UZeMo-nWQwwU",
9-
authDomain: "mannat-tour-service.firebaseapp.com",
10-
projectId: "mannat-tour-service",
11-
storageBucket: "mannat-tour-service.appspot.com",
12-
messagingSenderId: "773188042645",
13-
appId: "1:773188042645:web:ec7c7a2a2946167f53409c"
8+
apiKey: process.env.REACT_APP_apiKey,
9+
authDomain: process.env.REACT_APP_authDomain,
10+
projectId: process.env.REACT_APP_projectId,
11+
storageBucket: process.env.REACT_APP_storageBucket,
12+
messagingSenderId: process.env.REACT_APP_messagingSenderId,
13+
appId: process.env.REACT_APP_appId
1414
};
1515

1616
// Initialize Firebase

0 commit comments

Comments
 (0)