We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669b58e commit de8f990Copy full SHA for de8f990
server/controllers/aws.controller.js
@@ -20,9 +20,8 @@ const client = s3.createClient({
20
},
21
});
22
23
-const bucketBase = process.env.S3_BUCKET_URL_BASE;
24
-const s3Url = `https://s3-${process.env.AWS_REGION}.amazonaws.com/${process.env.S3_BUCKET}/`;
25
-const s3Bucket = bucketBase || s3Url;
+const s3Bucket = process.env.S3_BUCKET_URL_BASE ||
+ `https://s3-${process.env.AWS_REGION}.amazonaws.com/${process.env.S3_BUCKET}/`;
26
27
function getExtension(filename) {
28
const i = filename.lastIndexOf('.');
0 commit comments