From 2dfdefbdf4bc888a03dd3e4f5c3e8285591a62fd Mon Sep 17 00:00:00 2001 From: Tim Hadwen Date: Fri, 6 Mar 2026 21:42:21 +1000 Subject: [PATCH] Increase build memory and static generation timeout Raise Node heap to 4GB for Docker builds and extend Next.js static page generation timeout to 120s to prevent resource page build failures. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 1 + next.config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index a5cf743..ca53969 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ FROM node:22-bookworm-slim AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . +ENV NODE_OPTIONS="--max-old-space-size=4096" RUN npm run build FROM node:22-bookworm-slim AS runner diff --git a/next.config.ts b/next.config.ts index 68a6c64..4437880 100644 --- a/next.config.ts +++ b/next.config.ts @@ -2,6 +2,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", + staticPageGenerationTimeout: 120, }; export default nextConfig;