Skip to content

Commit

Permalink
Merge pull request #10 from mesutcifci/react-e-commerce-v1-rename-env
Browse files Browse the repository at this point in the history
build(react-e-commerce): remove the VITE_APP prefix from env variables to prevent expose to the client.
  • Loading branch information
mesutcifci authored Dec 1, 2024
2 parents 7db0376 + f739928 commit 72210db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions react-e-commerce-app/src/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { getAuth, GoogleAuthProvider } from "firebase/auth";
import { getFirestore } from "firebase/firestore";

const firebaseConfig = {
apiKey: `${import.meta.env.VITE_APP_FIREBASE_API_KEY}`,
authDomain: `${import.meta.env.VITE_APP_FIREBASE_AUTH_DOMAIN}`,
projectId: `${import.meta.env.VITE_APP_FIREBASE_PROJECT_ID}`,
storageBucket: `${import.meta.env.VITE_APP_FIREBASE_STORAGE_BUCKET}`,
messagingSenderId: `${import.meta.env.VITE_APP_FIREBASE_MESSAGING_SENDER_ID}`,
appId: `${import.meta.env.VITE_APP_FIREBASE_APP_ID}`,
apiKey: `${import.meta.env.FIREBASE_API_KEY}`,
authDomain: `${import.meta.env.FIREBASE_AUTH_DOMAIN}`,
projectId: `${import.meta.env.FIREBASE_PROJECT_ID}`,
storageBucket: `${import.meta.env.FIREBASE_STORAGE_BUCKET}`,
messagingSenderId: `${import.meta.env.FIREBASE_MESSAGING_SENDER_ID}`,
appId: `${import.meta.env.FIREBASE_APP_ID}`,
};

// Initialize Firebase
Expand Down

0 comments on commit 72210db

Please sign in to comment.