cloud-functions-emulator
cloud-functions-emulator copied to clipboard
GCLOUD_PROJECT is favored over GOOGLE_CLOUD_PROJECT in detectProjectId.js
Steps to reproduce
- Open https://github.com/GoogleCloudPlatform/cloud-functions-emulator/blob/master/src/utils/detectProjectId.js
- View the code
if (process.env.GCLOUD_PROJECT) {
return process.env.GCLOUD_PROJECT;
}
if (process.env.GOOGLE_CLOUD_PROJECT) {
return process.env.GOOGLE_CLOUD_PROJECT;
}
I thought GCLOUD_PROJECT is deprecated? Should GOOGLE_CLOUD_PROJECT be first in this check? Can you share documentation on these two variables? Thanks.