You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw'set GOOGLE_APPLICATION_CREDENTIALS variable (see https://googlecloudplatform.github.io/google-cloud-node/#/docs/pubsub/0.8.0/guides/authentication)';
12
-
}
10
+
// if (!process.env.GOOGLE_APPLICATION_CREDENTIALS) {
11
+
// throw 'set GOOGLE_APPLICATION_CREDENTIALS variable (see https://googlecloudplatform.github.io/google-cloud-node/#/docs/pubsub/0.8.0/guides/authentication)';
12
+
// }
13
+
14
+
// if (!process.env.GCLOUD_PROJECT) {
15
+
// throw 'set GCLOUD_PROJECT variable (see https://googlecloudplatform.github.io/google-cloud-node/#/docs/pubsub/0.8.0/guides/authentication)';
16
+
// }
13
17
14
-
if(!process.env.GCLOUD_PROJECT){
15
-
throw'set GCLOUD_PROJECT variable (see https://googlecloudplatform.github.io/google-cloud-node/#/docs/pubsub/0.8.0/guides/authentication)';
16
-
}
17
18
18
-
/**
19
-
* In order to use gcp pub/sub module we must provide 2 env. variables
20
-
* GCP_PROJECT_ID - the project id on GCP
21
-
* GCP_KEYFILE_PATH - path where the google service account key is located
0 commit comments