Skip to content

Commit

Permalink
Revert "refactor: environment variable"
Browse files Browse the repository at this point in the history
This reverts commit d280786.
  • Loading branch information
narayan954 committed Sep 7, 2023
1 parent 4b53b59 commit 3f6d573
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
16 changes: 8 additions & 8 deletions .env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FIREBASE_APIKEY = AIzaSyCngWCAMuh-3lOk_unlhOes9otDo2Go_kw
FIREBASE_AUTHDOMAIN = dummy-graham.firebaseapp.com
FIREBASE_PROJECTID = dummy-graham
FIREBASE_STORAGEBUCKET = dummy-graham.appspot.com
FIREBASE_MESSAGINGSENDERID = 1039947824283
FIREBASE_APPID = 1:1039947824283:web:b8658e4fdf5b6f90959a3e
FIREBASE_MEASUREMENTID = G-56JCX3KWGS
FIREBASE_DBURL = https://dummy-graham-default-rtdb.asia-southeast1.firebasedatabase.app
VITE_DUMMYGRAM_APIKEY = AIzaSyCngWCAMuh-3lOk_unlhOes9otDo2Go_kw
VITE_DUMMYGRAM_AUTHDOMAIN = dummy-graham.firebaseapp.com
VITE_DUMMYGRAM_PROJECTID = dummy-graham
VITE_DUMMYGRAM_STORAGEBUCKET = dummy-graham.appspot.com
VITE_DUMMYGRAM_MESSAGINGSENDERID = 1039947824283
VITE_DUMMYGRAM_APPID = 1:1039947824283:web:b8658e4fdf5b6f90959a3e
VITE_DUMMYGRAM_MEASUREMENTID = G-56JCX3KWGS
VITE_DUMMYGRAM_DBURL = https://dummy-graham-default-rtdb.asia-southeast1.firebasedatabase.app
14 changes: 7 additions & 7 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FIREBASE_APIKEY = ""
FIREBASE_AUTHDOMAIN = ""
FIREBASE_PROJECTID = ""
FIREBASE_STORAGEBUCKET = ""
FIREBASE_MESSAGINGSENDERID = ""
FIREBASE_APPID = ""
FIREBASE_MEASUREMENTID = ""
REACT_APP_DUMMYGRAM_APIKEY=,
REACT_APP_DUMMYGRAM_AUTHDOMAIN=,
REACT_APP_DUMMYGRAM_PROJECTID=,
REACT_APP_DUMMYGRAM_STORAGEBUCKET=,
REACT_APP_DUMMYGRAM_MESSAGINGSENDERID=,
REACT_APP_DUMMYGRAM_APPID=,
REACT_APP_DUMMYGRAM_MEASUREMENTID=
12 changes: 6 additions & 6 deletions src/lib/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import firebase from "firebase/compat/app";
import { v4 as uuid } from "uuid";

const firebaseApp = firebase.initializeApp({
apiKey: import.meta.env.FIREBASE_APIKEY,
authDomain: import.meta.env.FIREBASE_AUTHDOMAIN,
projectId: import.meta.env.FIREBASE_PROJECTID,
storageBucket: import.meta.env.FIREBASE_STORAGEBUCKET,
messagingSenderId: import.meta.env.FIREBASE_MESSAGINGSENDERID,
appId: import.meta.env.FIREBASE_APPID,
apiKey: import.meta.env.VITE_DUMMYGRAM_APIKEY,
authDomain: import.meta.env.VITE_DUMMYGRAM_AUTHDOMAIN,
projectId: import.meta.env.VITE_DUMMYGRAM_PROJECTID,
storageBucket: import.meta.env.VITE_DUMMYGRAM_STORAGEBUCKET,
messagingSenderId: import.meta.env.VITE_DUMMYGRAM_MESSAGINGSENDERID,
appId: import.meta.env.VITE_DUMMYGRAM_APPID,
});

// Use these for db & auth
Expand Down

0 comments on commit 3f6d573

Please sign in to comment.