// worker/minio.ts import { Client } from "minio"; import dotenv from "dotenv"; dotenv.config(); export function getMinioClient() { return new Client({ endPoint: process.env.MINIO_ENDPOINT!, useSSL: process.env.MINIO_USE_TLS === "yes", accessKey: process.env.MINIO_ACCESS_KEY!, secretKey: process.env.MINIO_SECRET_KEY!, }); }