Skip to content

Commit

Permalink
Chore(server): firebase-admin sdk 설치
Browse files Browse the repository at this point in the history
  • Loading branch information
hwna00 committed Sep 25, 2023
1 parent 3f04ab1 commit f587bec
Show file tree
Hide file tree
Showing 4 changed files with 817 additions and 23 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.3.0",
"firebase-admin": "^11.10.1",
"prettier": "^3.0.1",
"react-daum-postcode": "^3.1.3"
}
Expand Down
1 change: 1 addition & 0 deletions packages/server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
housepital-88bf9-firebase-adminsdk-7nziv-98af2eba4e.json
9 changes: 9 additions & 0 deletions packages/server/config/fbAdmin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const admin = require('firebase-admin');

const serviceAccount = require(process.env.FIREBASE_SERVICE_ACCOUNT_KEY_PATH);

admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
});

module.exports = admin;
Loading

0 comments on commit f587bec

Please sign in to comment.