|
if (process.env.GCLOUD_PROJECT) { |
if (process.env.GCLOUD_PROJECT) {
require('@google/cloud-debug');
}
What is the rationale for checking for GCLOUD_PROJECT being defined? On GCE and GKE, this env. var. is not going to be defined unless the customer explicitly defines it.
nodejs-docs-samples/debugger/app.js
Line 19 in ba151d5
What is the rationale for checking for
GCLOUD_PROJECTbeing defined? On GCE and GKE, this env. var. is not going to be defined unless the customer explicitly defines it.