Firebase Setup
Firebase
Set
VUE_APP_DEFAULT_AUTH=firebase
in the
.env
file.
Also fill all the firebase credentials
in the .env
file.
Remove the fake-backend setup code from the
main.js
Now just uncomment the below firebase setup code in the
main.js
file.
// Import Firebase Configuration file
import { initFirebaseBackend } from "./helpers/firebase_helper";
const firebaseConfig = {
apiKey: process.env.NEXT_PUBLIC_APIKEY,
authDomain: process.env.NEXT_PUBLIC_AUTHDOMAIN,
databaseURL: process.env.NEXT_PUBLIC_DATABASEURL,
projectId: process.env.NEXT_PUBLIC_PROJECTID,
storageBucket: process.env.NEXT_PUBLIC_STORAGEBUCKET,
messagingSenderId: process.env.NEXT_PUBLIC_MESSAGINGSENDERID,
appId: process.env.NEXT_PUBLIC_APPID,
measurementId: process.env.NEXT_PUBLIC_MEASUREMENTID,
};
// init firebase backend
initFirebaseBackend(firebaseConfig);