Skip to content

Commit

Permalink
Add Config.js Template
Browse files Browse the repository at this point in the history
  • Loading branch information
evanalif113 committed Nov 2, 2024
1 parent 1fa2293 commit fad5843
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions public/script/config-Template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// fireconfig.js
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.14.1/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/10.14.1/firebase-analytics.js";

// Konfigurasi Firebase
const firebaseConfig = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: "",
measurementId: ""
};

// Inisialisasi Firebase App
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);

export {analytics};
export default app; // Menggunakan default export untuk app

0 comments on commit fad5843

Please sign in to comment.