Use Next.js standalone output for lean production runtime.
Deploy can drop full node_modules and run .next/standalone/server.js (~100MB RSS).
This commit is contained in:
+28
-26
@@ -1,26 +1,28 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
images: {
|
// Leaner production runtime: deploy uses .next/standalone and drops node_modules.
|
||||||
remotePatterns: [
|
output: "standalone",
|
||||||
{
|
images: {
|
||||||
protocol: "https",
|
remotePatterns: [
|
||||||
hostname: "meshkee-templates.sas.amin.parminstorage.ir",
|
{
|
||||||
},
|
protocol: "https",
|
||||||
{
|
hostname: "meshkee-templates.sas.amin.parminstorage.ir",
|
||||||
protocol: "https",
|
},
|
||||||
hostname: "meshkee-storage.sas.amin.parminstorage.ir",
|
{
|
||||||
},
|
protocol: "https",
|
||||||
{
|
hostname: "meshkee-storage.sas.amin.parminstorage.ir",
|
||||||
protocol: "https",
|
},
|
||||||
hostname: "c804387.parspack.net",
|
{
|
||||||
},
|
protocol: "https",
|
||||||
{
|
hostname: "c804387.parspack.net",
|
||||||
protocol: "https",
|
},
|
||||||
hostname: "cdn.meshkee.com",
|
{
|
||||||
},
|
protocol: "https",
|
||||||
],
|
hostname: "cdn.meshkee.com",
|
||||||
},
|
},
|
||||||
};
|
],
|
||||||
|
},
|
||||||
export default nextConfig;
|
};
|
||||||
|
|
||||||
|
export default nextConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user