I am trying to deploy Cloud Functions for Firebase Node.js, and I am following the documentation here https://firebase.google.com/docs/functions/get-started?gen=2nd#deploy-functions-to-a-production-environment
I wanted to use custom service account with the functions instead of the default App engine one.
I am unable to pass this parameter while deploying firebase deploy --only functions
like normal gcloud functions deploy --service-account
I have tried also to override the service account after the function creation by gcloud functions deploy FUNCTION_NAME --service-account "SA@PROJECT_ID.iam.gserviceaccount.com"
I got this error message
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: function.js does not exist; Error ID: 7485c5b6