Skip to content

Commit 2427d04

Browse files
mrTuomoKcursoragent
andcommitted
test(docker): drop worker cap and skip-lint OpenShift build opts
Keep filtered pnpm install and hoisted node-linker as the only memory-related Docker changes for Azure review build testing. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 01db08c commit 2427d04

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,6 @@ USER default
140140
ENV HUSKY=0
141141
RUN pnpm install --frozen-lockfile --filter ${PROJECT}...
142142
RUN pnpm --filter ${PROJECT} run share-static-hardlink
143-
# OpenShift build pods are memory-constrained. Match GitHub CI build settings and
144-
# limit Next.js static-generation workers (default is 4 parallel child processes).
145-
ENV NEXTJS_IGNORE_ESLINT=1 \
146-
NEXTJS_IGNORE_TYPECHECK=1 \
147-
NEXT_BUILD_CPUS=1 \
148-
NEXT_TELEMETRY_DISABLED=1
149143
RUN pnpm --filter ${PROJECT} run build
150144

151145
# Does not play well with buildkit on CI

next.base.config.mjs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ const trueEnv = ['true', '1', 'yes'];
1515
// const isProd = process.env.NODE_ENV === 'production';
1616
const isDevelopment = process.env.NODE_ENV === 'development';
1717
const isCI = trueEnv.includes(process.env?.CI ?? 'false');
18-
const nextBuildCpus = process.env.NEXT_BUILD_CPUS
19-
? Number(process.env.NEXT_BUILD_CPUS)
20-
: undefined;
2118

2219
const NEXTJS_IGNORE_ESLINT = trueEnv.includes(
2320
process.env?.NEXTJS_IGNORE_ESLINT ?? 'false'
@@ -139,9 +136,6 @@ const nextBaseConfig = ({
139136
// Experimental monorepo support
140137
externalDir: true,
141138
scrollRestoration: true,
142-
// Limit parallel page-data workers in memory-constrained Docker/OpenShift builds.
143-
...(nextBuildCpus ? { cpus: nextBuildCpus } : {}),
144-
...(nextBuildCpus ? { webpackMemoryOptimizations: true } : {}),
145139
},
146140

147141
// 🚨 TURBOPACK CONFIGURATION

0 commit comments

Comments
 (0)