seo improvement and updated notifs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { initializeApp } from 'firebase/app'
|
||||
import { getAuth, GoogleAuthProvider } from 'firebase/auth'
|
||||
import { getMessaging, isSupported } from 'firebase/messaging'
|
||||
|
||||
const firebaseConfig = {
|
||||
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
|
||||
@@ -15,3 +16,6 @@ const app = initializeApp(firebaseConfig)
|
||||
// Google Auth initialization
|
||||
export const auth = getAuth(app)
|
||||
export const googleProvider = new GoogleAuthProvider()
|
||||
|
||||
// FCM Messaging — resolves to null in unsupported browsers (e.g. Firefox, older Safari)
|
||||
export const messagingPromise = isSupported().then((yes) => (yes ? getMessaging(app) : null))
|
||||
|
||||
Reference in New Issue
Block a user