Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
modified line 46 as specified here: kriasoft/react-firebase-starter#301. Also added '" "' around .env variable in heroku
  • Loading branch information
golembeskia committed Aug 17, 2021
1 parent 6d9be32 commit 29dd33c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firebase/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 29dd33c

Please sign in to comment.