Skip to content

Instantly share code, notes, and snippets.

@Serhansolo
Created March 31, 2020 13:59
Show Gist options
  • Save Serhansolo/08be10493eb3b262e6833d77330409ba to your computer and use it in GitHub Desktop.
Save Serhansolo/08be10493eb3b262e6833d77330409ba to your computer and use it in GitHub Desktop.
import firebase from "firebase/app";
// Import needed firebase modules
import "firebase/auth";
// Firebase app config
const config = {
apiKey: process.env.VUE_APP_API_KEY,
authDomain: process.env.VUE_APP_AUTH_DOMAIN,
databaseURL: process.env.VUE_APP_DATABASE_URL,
projectId: process.env.VUE_APP_PROJECT_ID,
storageBucket: process.env.VUE_APP_STORAGE_BUCKET,
messagingSenderId: process.env.VUE_APP_MESSAGING_SENDER_ID,
appId: process.env.VUE_APP_APP_ID
};
// Init our firebase app
firebase.initializeApp(config);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment