Skip to content

Commit 8ceddb4

Browse files
committed
point: vite has diff setting for env variables
1 parent 134857b commit 8ceddb4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

client/src/firebase.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { getFirestore } from "firebase/firestore"; // Add Firestore module impor
44

55
// Your web app's Firebase configuration
66
const firebaseConfig = {
7-
apiKey: process.env.REACT_APP_apiKey,
8-
authDomain: process.env.REACT_APP_authDomain,
9-
projectId: process.env.REACT_APP_projectId,
10-
storageBucket: process.env.REACT_APP_storageBucket,
11-
messagingSenderId: process.env.REACT_APP_messagingSenderId,
12-
appId: process.env.REACT_APP_appId,
13-
measurementId: process.env.REACT_APP_measurementId
7+
apiKey: import.meta.env.VITE_REACT_APP_apiKey,
8+
authDomain: import.meta.env.VITE_REACT_APP_authDomain,
9+
projectId: import.meta.env.VITE_REACT_APP_projectId,
10+
storageBucket: import.meta.env.VITE_REACT_APP_storageBucket,
11+
messagingSenderId: import.meta.env.VITE_REACT_APP_messagingSenderId,
12+
appId: import.meta.env.VITE_REACT_APP_appId,
13+
measurementId: import.meta.env.VITE_REACT_APP_measurementId
1414
};
1515

1616
// Initialize Firebase

0 commit comments

Comments
 (0)