You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setting NODE_OPTIONS inline may be overridden by an ENV earlier/later in the Dockerfile or ignored if the shell treats it as a separate command; confirm the inline assignment reliably applies to the pnpm process in this multi-stage build context and that no global ENV NODE_OPTIONS is needed for consistency.
RUN if [ "$NEXT_PUBLIC_PW_TEST" = "true" ]; then NEXT_PUBLIC_PW_TEST=true NODE_OPTIONS="--max-old-space-size=4096" pnpm build; else NODE_OPTIONS="--max-old-space-size=4096" pnpm build; fi
The conditional sets NEXT_PUBLIC_PW_TEST only when the incoming value is "true" but always sets NODE_OPTIONS; verify that this does not change build outputs across CI and local builds unintentionally and that memory limit is appropriate for builder resources.
RUN if [ "$NEXT_PUBLIC_PW_TEST" = "true" ]; then NEXT_PUBLIC_PW_TEST=true NODE_OPTIONS="--max-old-space-size=4096" pnpm build; else NODE_OPTIONS="--max-old-space-size=4096" pnpm build; fi
Pwuts
changed the title
ci: Add NODE_OPTIONS for memory limit during build
ci(frontend): Add NODE_OPTIONS for memory limit during build
Sep 6, 2025
Pwuts
changed the title
ci(frontend): Add NODE_OPTIONS for memory limit during build
build(frontend): Add NODE_OPTIONS for memory limit during build
Sep 6, 2025
Pwuts
changed the title
build(frontend): Add NODE_OPTIONS for memory limit during build
build(frontend): Increase build process memory limit to 4 GiB
Sep 6, 2025
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Increase memory limit of frontend build process to 4GiB to fix out-of-memory build failures