Increase build memory and static generation timeout
Some checks failed
Build and Deploy / deploy (push) Failing after 33m4s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user