23 lines
544 B
TypeScript
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;
|