Hotfixed S3 not loading

This commit is contained in:
Stefan Zermatten
2022-11-24 13:39:28 +02:00
parent 881496e9c1
commit 23d44e54e3
2 changed files with 5 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ let createS3FilesCollection;
/* This is the best practice for app security */
if (Meteor.isServer && Meteor.settings.useS3) {
// Create a new S3 object
const s3 = new S3({
const s3 = S3({
accessKeyId: s3Conf.key,
secretAccessKey: s3Conf.secret,
endpoint: s3Conf.endpoint,

View File

@@ -1,2 +1,5 @@
import S3 from 'aws-sdk/clients/s3';
export default S3;
export default function () {
return new S3(...arguments);
}