Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
teenageknight committed Sep 22, 2024
1 parent 717ce30 commit 2011e42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const Geocodio = require("geocodio-library-node");
const { initializeApp, cert } = require("firebase-admin/app");
const { getFirestore } = require("firebase-admin/firestore");

console.log("right before loading in the service account");
const serviceAccountLocal = require("../service-account-keys/bryce-jackson-website-firebase-adminsdk-ra4es-7428ff5320.json");

// FIXME: THIS LIKELY WILL BREAK CD IN THE FUTURE. THIS IS BECUASE THE SERVICE ACCOUNT IS NOT CHECKED
Expand All @@ -29,7 +30,7 @@ console.log("right outside of the if");
console.log(serviceAccountLocal);
console.log(process.env.FIREBASE_SERVICE_ACCOUNT);
const config = {
credential: cert(process.env.FIREBASE_SERVICE_ACCOUNT),
credential: cert(serviceAccountLocal),
};

initializeApp(config);
Expand Down

0 comments on commit 2011e42

Please sign in to comment.