From 64ca3bedf42658921bd66be0b1e1e98ee69139e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Henrique?= Date: Sun, 16 Feb 2025 11:03:53 -0300 Subject: [PATCH] fix: provide default values for Firebase configuration variables --- src/config/firebase.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/config/firebase.ts b/src/config/firebase.ts index e974377..c5aab56 100644 --- a/src/config/firebase.ts +++ b/src/config/firebase.ts @@ -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);