diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d48330e4..ad2b59d6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,6 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "22" - - run: npm instal + - run: npm install - run: npm run build --if-present - run: npm test diff --git a/.gitignore b/.gitignore index e76736d2..3141dbf6 100644 --- a/.gitignore +++ b/.gitignore @@ -103,7 +103,9 @@ stats.html .firebase -src/firebase/firebase.js +# src/firebase/firebase.js node_modules/ -package-lock.json \ No newline at end of file +package-lock.json + +.env \ No newline at end of file diff --git a/src/firebase/firebase.js b/src/firebase/firebase.js new file mode 100644 index 00000000..bbc3d02e --- /dev/null +++ b/src/firebase/firebase.js @@ -0,0 +1,34 @@ +// Import the functions you need from the SDKs you need +import { initializeApp } 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: "AIzaSyCSfeLVEVhs6j0uNsi9fIxxayZMPbEup1g", + authDomain: "ohours.firebaseapp.com", + databaseURL: "https://ohours-default-rtdb.firebaseio.com", + projectId: "ohours", + storageBucket: "ohours.firebasestorage.app", + messagingSenderId: "558747405743", + appId: "1:558747405743:web:de6600f44afdbe4c9a335a", + measurementId: "G-XXWW390RPS" +}; + +// const firebaseConfig = { +// apiKey: process.env.REACT_APP_FIREBASE_API_KEY, +// authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN, +// databaseURL: process.env.REACT_APP_FIREBASE_DATABASE_URL, +// projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID, +// storageBucket: process.env.REACT_APP_FIREBASE_STORAGE_BUCKET, +// messagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGING_SENDER_ID, +// appId: process.env.REACT_APP_FIREBASE_APP_ID, +// measurementId: process.env.REACT_APP_FIREBASE_MEASUREMENT_ID, +// }; + +// Initialize Firebase +export const app = initializeApp(firebaseConfig); +const analytics = getAnalytics(app); \ No newline at end of file