Reduce shared-server build concurrency and memory pressure

This commit is contained in:
2026-09-10 12:18:41 -04:00
parent 5c791164a3
commit f35de3b03c
3 changed files with 18 additions and 0 deletions
+4
View File
@@ -2,6 +2,10 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
experimental: {
cpus: process.env.NEXT_BUILD_CPUS ? Math.max(1, Math.min(2, Number(process.env.NEXT_BUILD_CPUS) || 2)) : 2,
memoryBasedWorkersCount: false,
},
poweredByHeader: false,
images: { qualities: [75, 85] },
async redirects() {