diff --git a/firebase/index.js b/firebase/index.js index e08a161..269b74f 100644 --- a/firebase/index.js +++ b/firebase/index.js @@ -42,7 +42,8 @@ fireBaseAdmin.initializeApp({ type: process.env.FIREBASE_TYPE, project_id: process.env.FIREBASE_PROJECT_ID, private_key_id: process.env.FIREBASE_PRIVATE_KEY_ID, - private_key: process.env.FIREBASE_PRIVATE_KEY.replace(/\\n/g, '\n'), + //private_key: process.env.FIREBASE_PRIVATE_KEY.replace(/\\n/g, '\n'), + private_key: JSON.parse(process.env.FIREBASE_PRIVATE_KEY).replace(/\\n/g, '\n'), client_email: process.env.FIREBASE_CLIENT_EMAIL, client_id: process.env.FIREBASE_CLIENT_ID, auth_uri: process.env.FIREBASE_AUTH_URI,