Update firebase-config.js

This commit is contained in:
ssbg04 authored and GitHub committed 2025-06-04 10:51:05 +08:00
1 parent 25297282b6
commit f813c4e296
1 file changed
+2 -2
+2 -2
View File
@@ -1,5 +1,5 @@
const admin = require('firebase-admin');
const serviceAccount = require('./firebase-key.json');
const serviceAccount = JSON.parse(process.env.FIREBASE_SERVICE_ACCOUNT);
try {
admin.initializeApp({
@@ -20,4 +20,4 @@ db.collection('users').get()
.then(() => console.log('Firestore connection successful'))
.catch(err => console.error('Firestore connection error:', err));
module.exports = db;
module.exports = db;