From b118833fda4d2f108ef8f90fcb2bc66609aa41df Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Wed, 15 Jun 2022 16:29:11 +0100 Subject: [PATCH] Default to eu-west-1 --- packages/server/src/api/controllers/static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/static/index.js b/packages/server/src/api/controllers/static/index.js index 529686f36d..af7f05e8af 100644 --- a/packages/server/src/api/controllers/static/index.js +++ b/packages/server/src/api/controllers/static/index.js @@ -114,7 +114,7 @@ exports.getSignedUploadURL = async function (ctx) { // Determine type of datasource and generate signed URL let signedUrl let publicUrl - const awsRegion = datasource?.config?.region + const awsRegion = datasource?.config?.region || "eu-west-1" if (datasource.source === "S3") { const { bucket, key } = ctx.request.body || {} if (!bucket || !key) {