I have a function which is deployed in Google Cloud Platform with Serverless using the serverless-google-cloudfunctions
plugin. The function was deployed successfully but when I tried to access the
require('firebase-functions').config()
object it was undefined.
Isn't the Firebase config available if you deployed the function with gcloud? Does the deployment have to be done with firebase-cli?
My assumption was that since Firebase functions are also gcloud functions and vice-versa that I wouldn't have any problems accessing the config.
I haven't tried to deploy the function with gcloud sdk (without Serverless).
Thanks