From b1e44097590630638e7c5e1ab6a6c79f8d4ada3e Mon Sep 17 00:00:00 2001 From: websites-deploy Date: Tue, 8 Sep 2026 06:54:00 +0000 Subject: [PATCH] Use Next.js standalone output for lean production runtime. Deploy can drop full node_modules and run .next/standalone/server.js (~100MB RSS). --- next.config.ts | 54 ++++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/next.config.ts b/next.config.ts index f40be10..32015ee 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,26 +1,28 @@ -import type { NextConfig } from "next"; - -const nextConfig: NextConfig = { - images: { - remotePatterns: [ - { - protocol: "https", - hostname: "meshkee-templates.sas.amin.parminstorage.ir", - }, - { - protocol: "https", - hostname: "meshkee-storage.sas.amin.parminstorage.ir", - }, - { - protocol: "https", - hostname: "c804387.parspack.net", - }, - { - protocol: "https", - hostname: "cdn.meshkee.com", - }, - ], - }, -}; - -export default nextConfig; +import type { NextConfig } from "next"; + +const nextConfig: NextConfig = { + // Leaner production runtime: deploy uses .next/standalone and drops node_modules. + output: "standalone", + images: { + remotePatterns: [ + { + protocol: "https", + hostname: "meshkee-templates.sas.amin.parminstorage.ir", + }, + { + protocol: "https", + hostname: "meshkee-storage.sas.amin.parminstorage.ir", + }, + { + protocol: "https", + hostname: "c804387.parspack.net", + }, + { + protocol: "https", + hostname: "cdn.meshkee.com", + }, + ], + }, +}; + +export default nextConfig;