chore: Introduce AWS_S3_FORCE_PATH_STYLE option to maintain compatability with Minio et al (#1443)

- Make AWS_S3_UPLOAD_BUCKET_NAME optional
This commit is contained in:
Tom Moor
2020-08-24 23:27:10 -07:00
committed by GitHub
parent 9b5573c5e2
commit 76279902f9
4 changed files with 19 additions and 17 deletions

View File

@@ -17,9 +17,8 @@ if (process.env.AWS_ACCESS_KEY_ID) {
"AWS_REGION",
"AWS_SECRET_ACCESS_KEY",
"AWS_S3_UPLOAD_BUCKET_URL",
"AWS_S3_UPLOAD_BUCKET_NAME",
"AWS_S3_UPLOAD_MAX_SIZE",
].forEach(key => {
].forEach((key) => {
if (!process.env[key]) {
console.error(`The ${key} env variable must be set when using AWS`);
// $FlowFixMe