IcaroPeretti

Database

May 12th, 2021
866
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import firebase from "firebase";
  2. import "firebase/firestore";
  3.  
  4. var firebaseConfig = {
  5.   apiKey: "AIzaSyCckrPg1jZPkZEx8HMC2KiqJXGpidCQysM",
  6.   authDomain: "projeto-rn-dd2fd.firebaseapp.com",
  7.   projectId: "projeto-rn-dd2fd",
  8.   storageBucket: "projeto-rn-dd2fd.appspot.com",
  9.   messagingSenderId: "1092407786960",
  10.   appId: "1:1092407786960:web:1603616cd7f4438411cdd5",
  11.   measurementId: "G-06HDFYJSFL"
  12. };
  13.  
  14. if(firebase.apps.length === 0){
  15.    firebase.initializeApp(firebaseConfig);
  16. }
  17.  
  18. firebase.firestore().settings({ experimentalForceLongPolling: true });
  19.  
  20. const db = firebase.firestore();
  21.  
  22. export default firebase
RAW Paste Data