From 4d773536926e3b552d36b548636ee53bfe031a08 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 31 Dec 2021 13:28:52 +0000 Subject: [PATCH] adding minio URL to objectStoreUrl check --- packages/server/src/utilities/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utilities/index.js b/packages/server/src/utilities/index.js index eacf9708e2..bc0a67105b 100644 --- a/packages/server/src/utilities/index.js +++ b/packages/server/src/utilities/index.js @@ -34,7 +34,7 @@ exports.checkSlashesInUrl = url => { * @return {string} The base URL of the object store (MinIO or S3). */ exports.objectStoreUrl = () => { - if (env.SELF_HOSTED) { + if (env.SELF_HOSTED || env.MINIO_URL) { // can use a relative url for this as all goes through the proxy (this is hosted in minio) return OBJ_STORE_DIRECTORY } else {