Browse Source

Default to eu-west-1

pull/6335/head
Mel O'Hagan 4 years ago
parent
commit
b118833fda
  1. 2
      packages/server/src/api/controllers/static/index.js

2
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) {

Loading…
Cancel
Save