fix: provide default values for Firebase configuration variables
This commit is contained in:
parent
53b9694b09
commit
64ca3bedf4
@ -4,13 +4,13 @@ import { getAuth } from 'firebase/auth';
|
||||
import { getAnalytics } from 'firebase/analytics';
|
||||
|
||||
const firebaseConfig = {
|
||||
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,
|
||||
apiKey: import.meta.env.VITE_FIREBASE_API_KEY || 'firebaseApiKey',
|
||||
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN || 'firebaseAuthDomain',
|
||||
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID || 'firebaseProjectId',
|
||||
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET || 'firebaseStorageBucket',
|
||||
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID || 'firebaseMessagingSenderId',
|
||||
appId: import.meta.env.VITE_FIREBASE_APP_ID || 'firebaseAppId',
|
||||
measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID || 'firebaseMeasurementId',
|
||||
};
|
||||
|
||||
const app = initializeApp(firebaseConfig);
|
||||
|
Loading…
x
Reference in New Issue
Block a user