Deploy can drop full node_modules and run .next/standalone/server.js (~100MB RSS).
19 lines
600 B
TypeScript
19 lines
600 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Leaner production runtime: deploy uses .next/standalone and drops node_modules.
|
|
output: "standalone",
|
|
images: {
|
|
formats: ["image/avif", "image/webp"],
|
|
remotePatterns: [
|
|
{ protocol: "https", hostname: "c804387.parspack.net" },
|
|
{ protocol: "https", hostname: "*.parspack.net" },
|
|
{ protocol: "https", hostname: "*.parminstorage.ir" },
|
|
{ protocol: "https", hostname: "cdn.meshkee.com" },
|
|
{ protocol: "https", hostname: "api.meshkee.com" },
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|