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';
|
import { getAnalytics } from 'firebase/analytics';
|
||||||
|
|
||||||
const firebaseConfig = {
|
const firebaseConfig = {
|
||||||
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
|
apiKey: import.meta.env.VITE_FIREBASE_API_KEY || 'firebaseApiKey',
|
||||||
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,
|
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN || 'firebaseAuthDomain',
|
||||||
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,
|
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID || 'firebaseProjectId',
|
||||||
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,
|
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET || 'firebaseStorageBucket',
|
||||||
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,
|
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID || 'firebaseMessagingSenderId',
|
||||||
appId: import.meta.env.VITE_FIREBASE_APP_ID,
|
appId: import.meta.env.VITE_FIREBASE_APP_ID || 'firebaseAppId',
|
||||||
measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID,
|
measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID || 'firebaseMeasurementId',
|
||||||
};
|
};
|
||||||
|
|
||||||
const app = initializeApp(firebaseConfig);
|
const app = initializeApp(firebaseConfig);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user