Reputation: 1371
I am looking for a way to get the public-facing name from Google cloud function?
Any idea if doable?
If you can also give me the Google site that list the other information about my project, it will be nice also. I could not find anything so far. :-( I will keep looking in the mean time.
Thanks
Upvotes: 0
Views: 332
Reputation: 1494
As mentioned in the comments, there's no way to retrieve the %APP_NAME% from inside the Cloud Functions since those are isolated from Firebase and reside on the GCP side. However as a workaround to avoid hardcoding you can send Environment Configuration variables through the next command:
firebase functions:config:set app.name="APP_NAME"
Then inside your Cloud Function you can retrieve your configuration variables by using:
functions.config().app.name
Upvotes: 1