I am using Cloud Functions and want to get the project name from within one of my Javascript server files. I know that value is stored in the .firebaserc, but I don\'t thin
You can use functions.config().firebase.projectId
functions.config().firebase.projectId
PS the easiest way to initialize app is admin.initializeApp(functions.config().firebase);
admin.initializeApp(functions.config().firebase);