Files
eu/next.config.ts
T
2026-07-11 21:21:38 +03:00

23 lines
544 B
TypeScript

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: minioHost,
...(minioPort ? { port: minioPort } : {}),
},
],
},
experimental: {
serverActions: {
bodySizeLimit: "5mb",
},
},
};
export default nextConfig;