From 31d37907e07cd0d3a9e056e3536eba09a261abca Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 4 Nov 2024 23:41:50 +0530 Subject: [PATCH] feat: use localhost in publicUrl --- server/src/storage/mino.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/storage/mino.ts b/server/src/storage/mino.ts index 652e0436..04efaf8c 100644 --- a/server/src/storage/mino.ts +++ b/server/src/storage/mino.ts @@ -108,7 +108,8 @@ class BinaryOutputService { await this.uploadBinaryOutputToMinioBucket(run, minioKey, binaryData); // Construct the public URL for the uploaded object - const publicUrl = `http://${process.env.MINIO_ENDPOINT}:${process.env.MINIO_PORT}/${this.bucketName}/${minioKey}`; + // todo: use minio endpoint + const publicUrl = `http://localhost:${process.env.MINIO_PORT}/${this.bucketName}/${minioKey}`; // Save the public URL in the result object uploadedBinaryOutput[key] = publicUrl;