prod: v.1
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@ import crypto from "crypto";
|
||||
import sharp from "sharp";
|
||||
|
||||
import { AppError } from "@/lib/action-result";
|
||||
import { getMinioClient } from "@/lib/minio";
|
||||
import { getMinioClient, getMinioPublicClient } 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 getMinioClient().presignedGetObject(
|
||||
return getMinioPublicClient().presignedGetObject(
|
||||
BUCKET,
|
||||
key,
|
||||
60 * 5
|
||||
|
||||
Reference in New Issue
Block a user