Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KoheiKanagu committed Mar 27, 2024
1 parent eb374be commit 66d36f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions firebase/functions/scripts/utils/load_admin_sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ function adminInitializeApp(
require('./external-account-credential').ExternalAccountCredential;
admin.initializeApp({
credential: new ExternalAccountCredential(),
projectId: process.env.GOOGLE_CLOUD_PROJECT,
});
} else {
admin.initializeApp({
credential: applicationDefault(),
projectId: process.env.GOOGLE_CLOUD_PROJECT,
});
}
}
Expand Down

0 comments on commit 66d36f7

Please sign in to comment.