Spaces:
Running
Running
Download config/firebase.js from 4send/messenger: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/spaces/4send/messenger/resolve/main/config/firebase.js
- Command line
-
hf download hf://spaces/4send/messenger/config/firebase.js
-
curl -L -o firebase.js https://huggingface.co/spaces/4send/messenger/resolve/main/config/firebase.js
330 Bytes
| 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; | |