From ed2e619bae2239baf3e9d0a3d3cf4a7b2646359d Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 4 Nov 2024 23:31:11 +0530 Subject: [PATCH] feat: conditionally apply minio endpoint --- server/src/storage/mino.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/storage/mino.ts b/server/src/storage/mino.ts index 3b83e386..652e0436 100644 --- a/server/src/storage/mino.ts +++ b/server/src/storage/mino.ts @@ -2,7 +2,7 @@ import { Client } from 'minio'; import Run from '../models/Run'; const minioClient = new Client({ - endPoint: process.env.MINIO_ENDPOINT || 'localhost', + endPoint: process.env.MINIO_ENDPOINT ? process.env.MINIO_ENDPOINT : 'localhost', port: parseInt(process.env.MINIO_PORT || '9000'), useSSL: false, accessKey: process.env.MINIO_ACCESS_KEY || 'minio-access-key',