text: // Firebase App (the core Firebase SDK) is always required and
  // must be listed before other Firebase SDKs
  import firebase from 'firebase/app'
  // Add the Firebase services that you want to use
  import 'firebase/firestore'
  import 'firebase/auth'
  
  const firebaseConfig = {
    apiKey: process.env.VUE_APP_FIREBASE_API_KEY,
    authDomain: process.env.VUE_APP_FIREBASE_AUTH_DOMAIN,
    databaseURL: process.env.VUE_APP_FIREBASE_DATABASE_URL,
    projectId: process.env.VUE_APP_FIREBASE_PROJECT_ID,
    storageBucket: process.env.VUE_APP_FIREBASE_STORAGE_BUCKET,
    messagingSenderId: process.env.VUE_APP_FIREBASE_MESSAGING_SENDER_ID,
    appId: process.env.VUE_APP_FIREBASE_APP_ID,
    measurementId: process.env.VUE_APP_FIREBASE_MEASUREMENT_ID
  }
  firebase.initializeApp(firebaseConfig)
  export const $db = firebase.firestore()
  export const $auth = firebase.auth()
  
  $db.enablePersistence()
    .catch(function (err) {
      if (err.code === 'failed-precondition') {
        console.log('Multiple tabs open, persistence can only be enabled in one tab at a a time.')
      } else if (err.code === 'unimplemented') {
        console.log('The current browser does not support all of the features required to enable persistence')
      }
    })
  
  // To apply the default browser preference instead of explicitly setting it.
  $auth.useDeviceLanguage()
  
  // Export types that exists in Firestore
  // This is not always necessary, but it's used in other examples
  const { Timestamp, GeoPoint } = firebase.firestore
  export { Timestamp, GeoPoint }
  