2022-09-19 08:55:42 +02:00
|
|
|
import { initializeApp } from "firebase/app";
|
2022-09-30 21:17:12 +02:00
|
|
|
import { getMessaging } from "firebase/messaging";
|
2022-10-01 13:06:54 +02:00
|
|
|
import { getAnalytics } from "firebase/analytics";
|
2022-09-19 08:55:42 +02:00
|
|
|
|
2022-09-19 09:36:47 +02:00
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
|
|
const firebaseConfig = {
|
|
|
|
apiKey: "AIzaSyCtHFyfCRkBt8MX5LPFogBi8ssKSypkW0g",
|
|
|
|
authDomain: "wrbapp.firebaseapp.com",
|
|
|
|
projectId: "wrbapp",
|
|
|
|
storageBucket: "wrbapp.appspot.com",
|
|
|
|
messagingSenderId: "160377508482",
|
|
|
|
appId: "1:160377508482:web:f651ccf2b242daf4879a9b",
|
|
|
|
measurementId: "G-31HEXDSVPZ"
|
|
|
|
};
|
|
|
|
|
|
|
|
const app = initializeApp(firebaseConfig);
|
2022-09-30 21:17:12 +02:00
|
|
|
|
2022-10-01 13:40:29 +02:00
|
|
|
try {
|
|
|
|
const messaging = getMessaging(app);
|
|
|
|
} catch {}
|
|
|
|
|
2022-10-01 13:06:54 +02:00
|
|
|
const analytics = getAnalytics(app);
|
2022-11-29 18:14:11 +01:00
|
|
|
})
|