Skip to content
Discussion options

You must be logged in to vote

Hello @alexlozdev,
Please can you confirm the follwoing on your end:

  • That your service account has a Firebase Hosting Admin role?
  • That you copied the content of the private key you generated (everything in the file) and pasted it as the value of FIREBASE_SERVICE_ACCOUNT in your environment variables
  • You have set GOOGLE_APPLICATION_CREDENTIALS value to $CM_BUILD_DIR/firebase_credentials.json. Ensure they are marked as secure.
  • Also, that the project_id in the key matches that of the app you are tying to host.

Afterwards, please add the script below to your pre-build script:

echo $FIREBASE_SERVICE_ACCOUNT > $GOOGLE_APPLICATION_CREDENTIALS

And then this to your post-build script:

firebase …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dam-ease
Comment options

Answer selected by dam-ease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants