This commit is contained in:
Ivan Rezchikov
2026-07-11 21:21:38 +03:00
parent 18161f4604
commit 4c42b5aa1d
20 changed files with 369 additions and 260 deletions
+5 -1
View File
@@ -1,10 +1,14 @@
import type { NextConfig } from "next";
const minioHost = process.env.MINIO_PUBLIC_URL ? new URL(process.env.MINIO_PUBLIC_URL).hostname : "localhost";
const minioPort = process.env.MINIO_PUBLIC_URL ? new URL(process.env.MINIO_PUBLIC_URL).port : undefined;
const nextConfig: NextConfig = {
images: {
remotePatterns: [
{
hostname: "**",
hostname: minioHost,
...(minioPort ? { port: minioPort } : {}),
},
],
},