Skip to content

Commit

Permalink
added .env file, moved stuff over
Browse files Browse the repository at this point in the history
  • Loading branch information
wongwh2002 committed Jul 28, 2024
1 parent faed70f commit 4846091
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
9 changes: 8 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
VITE_REACT_APP_gmap=AIzaSyDCs25ivx55QjPoixKSzGreSw-feBeJVms
VITE_REACT_APP_gmap=AIzaSyDCs25ivx55QjPoixKSzGreSw-feBeJVms
VITE_REACT_APP_firebase_api=AIzaSyDENRl9aTGHqlTZ5C_EYzwCFUeDPhKXDcI
VITE_REACT_APP_firebase_authDomain= "food-saviour-d4edb.firebaseapp.com"
VITE_REACT_APP_firebase_projectId= "food-saviour-d4edb"
VITE_REACT_APP_firebase_storageBucket= "food-saviour-d4edb.appspot.com"
VITE_REACT_APP_firebase_messagingSenderId= "143331820755"
VITE_REACT_APP_firebase_appId= "1:143331820755:web:b4952c3b0f6e1130278026"
VITE_REACT_APP_firebase_measurementId= "G-N4KQBXLH37"
2 changes: 1 addition & 1 deletion src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function NavBar() {
onClick={updateLocation}
style={{ cursor: "pointer" }}
>
Update Location
Update Current Location
</Navbar.Text>
</>
) : (
Expand Down
14 changes: 7 additions & 7 deletions src/config/firebase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { getStorage } from "firebase/storage";
// import { getAnalytics } from "firebase/analytics";

const firebaseConfig = {
apiKey: "AIzaSyDENRl9aTGHqlTZ5C_EYzwCFUeDPhKXDcI",
authDomain: "food-saviour-d4edb.firebaseapp.com",
projectId: "food-saviour-d4edb",
storageBucket: "food-saviour-d4edb.appspot.com",
messagingSenderId: "143331820755",
appId: "1:143331820755:web:b4952c3b0f6e1130278026",
measurementId: "G-N4KQBXLH37",
apiKey: import.meta.env.VITE_REACT_APP_firebase_api,
authDomain: import.meta.env.VITE_REACT_APP_firebase_authDomain,
projectId: import.meta.env.VITE_REACT_APP_firebase_projectId,
storageBucket: import.meta.env.VITE_REACT_APP_firebase_storageBucket,
messagingSenderId: import.meta.env.VITE_REACT_APP_firebase_messagingSenderId,
appId: import.meta.env.VITE_REACT_APP_firebase_appId,
measurementId: import.meta.env.VITE_REACT_APP_firebase_measurementId,
};

const app = initializeApp(firebaseConfig);
Expand Down

0 comments on commit 4846091

Please sign in to comment.