|
|
@ -67,7 +67,9 @@ export default class Gcs implements IStorageAdapter { |
|
|
|
// this.bucketName = process.env.NC_GCS_BUCKET;
|
|
|
|
// this.bucketName = process.env.NC_GCS_BUCKET;
|
|
|
|
options.credentials = { |
|
|
|
options.credentials = { |
|
|
|
client_email: this.input.client_email, |
|
|
|
client_email: this.input.client_email, |
|
|
|
private_key: this.input.private_key |
|
|
|
// replace \n with real line breaks to avoid
|
|
|
|
|
|
|
|
// error:0909006C:PEM routines:get_name:no start line
|
|
|
|
|
|
|
|
private_key: this.input.private_key.replace(/\\n/gm, '\n') |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
this.bucketName = this.input.bucket; |
|
|
|
this.bucketName = this.input.bucket; |
|
|
|