We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6441e commit 9d78ba3Copy full SHA for 9d78ba3
1 file changed
apps/meteor/app/file-upload/server/config/AmazonS3.ts
@@ -81,7 +81,6 @@ const configure = _.debounce(() => {
81
const config: Omit<S3Options, 'name' | 'getPath'> = {
82
connection: {
83
forcePathStyle: ForcePathStyle,
84
- region: Region,
85
followRegionRedirects: true,
86
},
87
params: {
@@ -91,6 +90,10 @@ const configure = _.debounce(() => {
91
90
URLExpiryTimeSpan,
92
};
93
+ if (Region) {
94
+ config.connection.region = Region;
95
+ }
96
+
97
if (AWSAccessKeyId && AWSSecretAccessKey) {
98
config.connection.credentials = {
99
accessKeyId: AWSAccessKeyId,
0 commit comments