feat(firebase): Add Firebase SDK and initialize Analytics
This commit integrates the Firebase SDK into the application to enable Firebase services, starting with Google Analytics. Key changes include: - Added the `firebase` package as a dependency. - Included Firebase project configuration variables in the production environment file. - Created a new `firebase.ts` utility to centralize Firebase app initialization. - Integrated the `FirebaseAnalytics` component into the root layout to enable analytics tracking across the entire application.
This commit is contained in:
@@ -1,2 +1,9 @@
|
||||
NEXT_PUBLIC_API_URL="https://admin.opplens.com/admin/v1/"
|
||||
NEXT_PUBLIC_TOAST_AUTO_CLOSE_DURATION=2500
|
||||
NEXT_PUBLIC_FIREBASE_API_KEY=AIzaSyCTjdsk2jE34IfnvSKP1JMTIf_Abd7tbt0
|
||||
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=opplens-270d1.firebaseapp.com
|
||||
NEXT_PUBLIC_FIREBASE_PROJECT_ID=opplens-270d1
|
||||
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=opplens-270d1.firebasestorage.app
|
||||
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=6923326255
|
||||
NEXT_PUBLIC_FIREBASE_APP_ID=1:6923326255:web:584a017e8e1bd0e4ed87da
|
||||
NEXT_PUBLIC_FIREBASE_MEASURMENT_ID=G-VQW40G8VKC
|
||||
|
||||
Reference in New Issue
Block a user