Untitled

 avatar
Shafaio
plain_text
7 months ago
954 B
6
Indexable
Never
import { initializeApp } from 'firebase/app';
import { getStorage } from '@firebase/storage';

const firebaseConfig = {
  apiKey: process.env.NEXT_PUBLIC_API_KEY,
  authDomain: process.env.NEXT_PUBLIC_AUTH_DOMAIN,
  projectId: process.env.NEXT_PUBLIC_PROJECT_ID,
  storageBucket: process.env.NEXT_PUBLIC_STORAGE_BUCKER,
  messagingSenderId: process.env.NEXT_PUBLIC_MESSAGING_SENDER_ID,
  appId: process.env.NEXT_PUBLIC_APP_ID,
  measurementId: process.env.NEXT_PUBLIC_MEASUREMENT_ID,
};

const app = initializeApp(firebaseConfig);
export const analytics = getStorage(app);

NEXT_PUBLIC_API_KEY=AIzaSyBCaCmVSZaDrCOt4WxIhDWxwF7xGae-X2o
NEXT_PUBLIC_AUTH_DOMAIN=uploadfile-92b82.firebaseapp.com
NEXT_PUBLIC_PROJECT_ID=uploadfile-92b82
NEXT_PUBLIC_STORAGE_BUCKER=uploadfile-92b82.appspot.com
NEXT_PUBLIC_MESSAGING_SENDER_ID=143182469488
NEXT_PUBLIC_APP_ID=1:143182469488:web:e4a599202c2c5808ab17b5
NEXT_PUBLIC_MEASUREMENT_ID=G-1P322B15J8
Leave a Comment