setting up firebase and firebase auth
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// Import the functions you need from the SDKs you need
|
||||
import firebase from "firebase/app";
|
||||
|
||||
import { getAnalytics } from "firebase/analytics";
|
||||
|
||||
// TODO: Add SDKs for Firebase products that you want to use
|
||||
// https://firebase.google.com/docs/web/setup#available-libraries
|
||||
|
||||
// Your web app's Firebase configuration
|
||||
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
|
||||
const firebaseConfig = {
|
||||
apiKey: process.env.NEXT_PUBLIC_FIREBASE_APIKEY,
|
||||
authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
|
||||
projectId: process.env.NEXT_PUBLIC_PROJECT_ID,
|
||||
storageBucket: process.env.NEXT_PUBLIC_STORAGE_BUCKET,
|
||||
messagingSenderId: process.env.NEXT_PUBLIC_MESSAGING_SENDER_ID,
|
||||
appId: process.env.NEXT_PUBLIC_APPID,
|
||||
measurementId: process.env.NEXT_PUBLIC_MEASUREMENT_ID
|
||||
};
|
||||
|
||||
// Initialize Firebase
|
||||
const app = firebase.initializeApp(firebaseConfig);
|
||||
const analytics = getAnalytics(app);
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user