How to get Firebase Project Name or ID from Cloud Function
Firebase admin SDK has access to that information for you.
const admin = require('firebase-admin');
const projectId = admin.instanceId().app.options.projectId
Thank you @Frank. The answer is:
process.env.GCLOUD_PROJECT
.
I'm not sure where the variable process
comes from, but this does work to get the project name.