fix: minio and main links

This commit is contained in:
Ivan Rezchikov
2026-07-12 16:47:49 +03:00
parent eaaf552ae6
commit 039cb4d2d3
4 changed files with 52 additions and 55 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import crypto from "crypto";
import sharp from "sharp";
import { AppError } from "@/lib/action-result";
import { getMinioClient, getMinioPublicClient } from "@/lib/minio";
import { getMinioClient } from "@/lib/minio";
const BUCKET = "uploads";
const MAX_FILE_SIZE = 5 * 1024 * 1024;
@@ -51,7 +51,7 @@ export async function removeImage(key: string) {
}
export async function getImageUrl(key: string): Promise<string> {
return getMinioPublicClient().presignedGetObject(
return getMinioClient().presignedGetObject(
BUCKET,
key,
60 * 5