A silly typo ... (#1127)

I think that "process.AWS_REGION" should be "process.env.AWS_REGION", right?
This commit is contained in:
Luca Guzzon 2021-09-06 07:38:45 +02:00 committed by GitHub
parent 31971c0c51
commit 89c5286a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
var s = this;
opt = opt || {};
opt.bucket = opt.bucket || opt.Bucket || process.env.AWS_S3_BUCKET;
opt.region = opt.region || process.AWS_REGION || "us-east-1";
opt.region = opt.region || process.env.AWS_REGION || "us-east-1";
opt.accessKeyId = opt.key = opt.key || opt.accessKeyId || process.env.AWS_ACCESS_KEY_ID;
opt.secretAccessKey = opt.secret = opt.secret || opt.secretAccessKey || process.env.AWS_SECRET_ACCESS_KEY;
if(!opt.accessKeyId || !opt.secretAccessKey){