Skip to content

fix: improve error message when deploying to a gcp project where fire…#10820

Open
IzaakGough wants to merge 3 commits into
mainfrom
@invertase/fix-issue-10379
Open

fix: improve error message when deploying to a gcp project where fire…#10820
IzaakGough wants to merge 3 commits into
mainfrom
@invertase/fix-issue-10379

Conversation

@IzaakGough

@IzaakGough IzaakGough commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Fixes #10379

This PR improves the error message produced when a user attempts to deploy to a gcp project which doesn't have firebase added/enabled.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request improves the user experience by catching 404 errors when retrieving the Firebase Admin SDK configuration and throwing a friendly error message if Firebase is not enabled on the Google Cloud project. It also adds corresponding unit tests in functionsConfig.spec.ts. The review feedback correctly points out a style guide violation where any is used for the caught error in src/functionsConfig.ts, suggesting unknown instead.

Comment thread src/functionsConfig.ts Outdated
IzaakGough and others added 2 commits July 21, 2026 11:06
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@IzaakGough
IzaakGough marked this pull request as ready for review July 21, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Functions deployment to Google Cloud Projects fails with unspecific error

2 participants