Skip to content

Commit d36bf89

Browse files
committed
support GOOGLE_APPLICATION_CREDENTIALS env variable
1 parent 1e8dbb1 commit d36bf89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provider/googleProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class GoogleProvider {
6161
}
6262

6363
getAuthClient() {
64-
let credentials = this.serverless.service.provider.credentials;
64+
let credentials = this.serverless.service.provider.credentials || process.env.GOOGLE_APPLICATION_CREDENTIALS;
6565
const credParts = credentials.split(path.sep);
6666

6767
if (credParts[0] === '~') {

0 commit comments

Comments
 (0)