Skip to content

Commit

Permalink
Merge pull request #9 from Hoang-Nguyen-Huy/feat/fetch-api
Browse files Browse the repository at this point in the history
feat: 🎸 security issue
  • Loading branch information
Hoang-Nguyen-Huy authored Oct 22, 2024
2 parents 7e63cff + b9d0c94 commit 33912e6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
VITE_FIREBASE_API_KEY=your_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_auth_domain
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_storage_bucket
VITE_API_BASE_URL=https://your-mockapi-url.com
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Environment variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
14 changes: 7 additions & 7 deletions src/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import { getAuth } from "firebase/auth";
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyCGYw_TG3UpZOox8SlioWPcj6wej07onVA",
authDomain: "fer-lab-da8b3.firebaseapp.com",
projectId: "fer-lab-da8b3",
storageBucket: "fer-lab-da8b3.appspot.com",
messagingSenderId: "625078386291",
appId: "1:625078386291:web:f1ce015a2d380b2cbbf406",
measurementId: "G-642HVRZF5W",
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
appId: import.meta.env.VITE_FIREBASE_APP_ID,
measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID,
};

// Initialize Firebase
Expand Down

0 comments on commit 33912e6

Please sign in to comment.