Files
eu/next.config.ts
2026-11-14 14:33:14 +03:00

26 lines
661 B
TypeScript

import type { NextConfig } from "next";
const publicUrl = process.env.RUSTFS_PUBLIC_URL ? new URL(process.env.RUSTFS_PUBLIC_URL) : null;
const nextConfig: NextConfig = {
images: {
remotePatterns: publicUrl
? [
{
protocol: publicUrl.protocol === "https:" ? "https" : "http",
hostname: publicUrl.hostname,
...(publicUrl.port ? { port: publicUrl.port } : {}),
pathname: `/${process.env.RUSTFS_BUCKET ?? "uploads"}/**`,
},
]
: [],
},
experimental: {
serverActions: {
bodySizeLimit: "6mb",
},
},
output: "standalone",
};
export default nextConfig;