Spaces:
Running
Running
File size: 330 Bytes
71601b1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | const admin = require('firebase-admin');
try {
if (process.env.FIREBASE_SERVICE_ACCOUNT) {
const serviceAccount = JSON.parse(process.env.FIREBASE_SERVICE_ACCOUNT);
admin.initializeApp({
credential: admin.credential.cert(serviceAccount)
});
}
} catch (err) {
}
module.exports = admin;
|