Skip to content

Commit

Permalink
More debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
sbutz committed Dec 30, 2023
1 parent 404be1c commit bd171de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"predeploy": "npm run build",
"deploy": "npx firebase-tools deploy --force --only 'functions,extensions'",
"pretest": "npm run build",
"test": "npx firebase-tools emulators:exec 'npx jest --runInBand'",
"test": "npx firebase-tools emulators:exec --debug 'npx jest --runInBand'",
"test:watch": "concurrently --kill-others \"npm:build:watch\" \"npx firebase-tools emulators:exec 'npx jest --watch --runInBand'\""
},
"engines": {
Expand Down
3 changes: 3 additions & 0 deletions functions/src/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {getStorage} from "firebase-admin/storage";
const config = process.env.FIREBASE_CONFIG ?
JSON.parse(process.env.FIREBASE_CONFIG) : undefined;

console.log(config);
console.log(process.env);

const app = initializeApp(config);
export const auth = getAuth(app);
export const storage = getStorage(app).bucket();
Expand Down

0 comments on commit bd171de

Please sign in to comment.