Increase build memory and static generation timeout
Some checks failed
Build and Deploy / deploy (push) Failing after 33m4s

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 <noreply@anthropic.com>
This commit is contained in:
Tim Hadwen
2026-03-06 21:42:21 +10:00
parent 70c313a953
commit 2dfdefbdf4
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -2,6 +2,7 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
staticPageGenerationTimeout: 120,
};
export default nextConfig;