log if it works or not

This commit is contained in:
Viktor Rådberg
2024-03-31 19:08:17 +02:00
parent 4e6dc56d99
commit 112023bdd5
2 changed files with 19 additions and 13 deletions

View File

@@ -1,8 +1,14 @@
import { initializeApp } from 'firebase/app';
import { getAnalytics, logEvent } from 'firebase/analytics';
const usingNewFirebaseKey = import.meta.env.VITE_FIREBASE_API_KEY !== undefined;
console.log('usingNewFirebaseKey', usingNewFirebaseKey);
const firebaseConfig = {
apiKey: 'AIzaSyCZ1AHMb5zmWS4VoRnC-OBxTswUfrJ0mlY',
apiKey:
import.meta.env.VITE_FIREBASE_API_KEY ??
'AIzaSyCZ1AHMb5zmWS4VoRnC-OBxTswUfrJ0mlY',
authDomain: 'life-trinket.firebaseapp.com',
projectId: 'life-trinket',
storageBucket: 'life-trinket.appspot.com',