Skip to content

Commit 721accf

Browse files
committed
fix: parse line break for gcp env var
1 parent 059337e commit 721accf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/gcp-kms-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function getClientCredentials() {
2626
? {
2727
credentials: {
2828
client_email: process.env.GOOGLE_APPLICATION_CREDENTIAL_EMAIL,
29-
private_key: process.env.GOOGLE_APPLICATION_CREDENTIAL_PRIVATE_KEY,
29+
private_key: process.env.GOOGLE_APPLICATION_CREDENTIAL_PRIVATE_KEY.replace(/\\n/gm, "\n"),
3030
},
3131
}
3232
: {};

0 commit comments

Comments
 (0)