Update index.js
This commit is contained in:
1 parent
f813c4e296
commit
a52d045c11
1 file changed
-8
@@ -2,15 +2,7 @@ const express = require('express');
|
||||
const cors = require('cors');
|
||||
const path = require('path');
|
||||
const db = require('./firebase-config');
|
||||
require("dotenv").config();
|
||||
require("serverless-http");
|
||||
const admin = require("firebase-admin");
|
||||
|
||||
const serviceAccount = JSON.parse(process.env.FIREBASE_SERVICE_ACCOUNT);
|
||||
|
||||
admin.initializeApp({
|
||||
credential:admin.credential.cert(serviceAccount)
|
||||
});
|
||||
|
||||
const app = express();
|
||||
|
||||
|
||||
Reference in new issue
Block a user