Skip to content

Commit 6f41a7c

Browse files
committed
Reverted the environment refactoring
1 parent ba56ef8 commit 6f41a7c

3 files changed

Lines changed: 19 additions & 30 deletions

File tree

README.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,18 @@ npm run build
4949
### Firebase Configuration
5050
This project uses Firebase for backend services. To set up your development environment:
5151

52-
1. Copy the environment template:
53-
```bash
54-
cp .env.example .env.local
55-
```
52+
Update the api keys in firebase.js to your keys.
5653

57-
2. Get the Firebase configuration values from your team lead or the Firebase Console
58-
3. Update `.env.local` with your Firebase configuration:
59-
```bash
60-
VITE_FIREBASE_API_KEY=your_api_key_here
61-
VITE_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
62-
VITE_FIREBASE_DATABASE_URL=https://your_project.firebasedatabase.app
63-
VITE_FIREBASE_PROJECT_ID=your_project_id
64-
VITE_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
65-
VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
66-
VITE_FIREBASE_APP_ID=your_app_id
54+
```js
55+
const firebaseConfig = {
56+
apiKey: "",
57+
authDomain: "",
58+
databaseURL:"",
59+
projectId: "",
60+
storageBucket: "",
61+
messagingSenderId: "",
62+
appId: "",
63+
};
6764
```
6865

6966
### Database Population

my-app/.env.example

Lines changed: 0 additions & 8 deletions
This file was deleted.

my-app/firebase.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import { reaction, toJS } from "mobx";
66

77
// Your web app's Firebase configuration
88
const firebaseConfig = {
9-
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
10-
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
11-
databaseURL: import.meta.env.VITE_FIREBASE_DATABASE_URL,
12-
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
13-
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,
14-
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
15-
appId: import.meta.env.VITE_FIREBASE_APP_ID,
9+
apiKey: "AIzaSyCBckVI9nhAP62u5jZJW3F4SLulUv7znis",
10+
authDomain: "findmynextcourse.firebaseapp.com",
11+
databaseURL:
12+
"https://findmynextcourse-default-rtdb.europe-west1.firebasedatabase.app",
13+
projectId: "findmynextcourse",
14+
storageBucket: "findmynextcourse.firebasestorage.app",
15+
messagingSenderId: "893484115963",
16+
appId: "1:893484115963:web:59ac087d280dec919ccd5e",
1617
};
1718

1819
// Initialize Firebase
@@ -23,7 +24,6 @@ export const db = getDatabase(app);
2324
export const googleProvider = new GoogleAuthProvider();
2425
googleProvider.addScope("profile");
2526
googleProvider.addScope("email");
26-
let noUpload = false;
2727

2828
export function connectToFirebase(model) {
2929
loadCoursesFromCacheOrFirebase(model);

0 commit comments

Comments
 (0)