René's URL Explorer Experiment


Title: build: raise Node heap for production build by albertoarena · Pull Request #7 · stackrender/stackrender · GitHub

Open Graph Title: build: raise Node heap for production build by albertoarena · Pull Request #7 · stackrender/stackrender

X Title: build: raise Node heap for production build by albertoarena · Pull Request #7 · stackrender/stackrender

Description: Description npm run build fails with a JavaScript heap out-of-memory error during the "rendering chunks" step, because the app compiles thousands of modules and exceeds V8's default heap ceiling (~2 GB on many machines). The same failure happens inside Docker when the Docker VM has too little RAM. This PR makes the build succeed out of the box: Set NODE_OPTIONS=--max-old-space-size=8192 on the Vite build step in the build script, via cross-env so it stays portable on Windows. Add cross-env as a devDependency (pinned to ^7.0.3 for broad Node compatibility). Document the matching Docker memory requirement (6-8 GB) in DOCKER.md, since the container build hits the same limit. Note: --max-old-space-size is a ceiling, not a reservation, so V8 only uses what the build actually needs. Related Issues None. Changes Made Feature implementation Bug fix Documentation update Other (please specify) Testing Before: npm run build OOMs during "rendering chunks" on a machine whose default V8 heap limit is ~2 GB. After: npm run build completes successfully (verified locally, ~55s) and produces a working dist/. Confirmed cross-env correctly sets NODE_OPTIONS on the build step. Checklist Before submitting, please ensure you have: Read the Contributing Guide Followed the Code of Conduct Tested your changes locally Updated documentation if needed Additional Notes This is the minimal fix to unblock the build. A follow-up could reduce peak build memory at the source with build.rollupOptions.output.manualChunks in vite.config.ts (the build currently emits a single very large chunk, and Vite already warns about it), which would also allow lowering the heap flag. Happy to open that as a separate PR if of interest.

Open Graph Description: Description npm run build fails with a JavaScript heap out-of-memory error during the "rendering chunks" step, because the app compiles thousands of modules and exceeds V8's default h...

X Description: Description npm run build fails with a JavaScript heap out-of-memory error during the "rendering chunks" step, because the app compiles thousands of modules and exceeds V8&#39...

Opengraph URL: https://github.com/stackrender/stackrender/pull/7

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:860a431e-9abb-7dd0-e128-8c760e0b70cf
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCEE0:1ED592:11610DD:16F0BF4:6B02FB31
html-safe-nonce83095de2f88c9cf7256087d253ad1cec4828fe5fc348f9a7e1aad9a363d7c890
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUUwOjFFRDU5MjoxMTYxMEREOjE2RjBCRjQ6NkIwMkZCMzEiLCJ2aXNpdG9yX2lkIjoiNTEzNDQ2MzczNTc3NTI5NjMwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca2a4804a1a210a538cbdcf8eeb25b2ed809d7dcd171978583e2c41aefd012be6
hovercard-subject-tagpull_request:4205106226
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/stackrender/stackrender/pull/7/files
twitter:imagehttps://avatars.githubusercontent.com/u/1126630?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1126630?s=400&v=4
og:image:altDescription npm run build fails with a JavaScript heap out-of-memory error during the "rendering chunks" step, because the app compiles thousands of modules and exceeds V8's default h...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/stackrender/stackrender git https://github.com/stackrender/stackrender.git
octolytics-dimension-user_id226551349
octolytics-dimension-user_loginstackrender
octolytics-dimension-repository_id977671574
octolytics-dimension-repository_nwostackrender/stackrender
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id977671574
octolytics-dimension-repository_network_root_nwostackrender/stackrender
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/stackrender/stackrender/pull/7/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackrender%2Fstackrender%2Fpull%2F7%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackrender%2Fstackrender%2Fpull%2F7%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=stackrender%2Fstackrender
Reloadhttps://github.com/stackrender/stackrender/pull/7/files
Reloadhttps://github.com/stackrender/stackrender/pull/7/files
Reloadhttps://github.com/stackrender/stackrender/pull/7/files
stackrenderhttps://github.com/stackrender
stackrenderhttps://github.com/stackrender/stackrender
Codehttps://github.com/stackrender/stackrender
Issueshttps://github.com/stackrender/stackrender/issues
Pull requestshttps://github.com/stackrender/stackrender/pulls
Actionshttps://github.com/stackrender/stackrender/actions
Projectshttps://github.com/stackrender/stackrender/projects
Security and qualityhttps://github.com/stackrender/stackrender/security
Insightshttps://github.com/stackrender/stackrender/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fstackrender%2Fstackrender%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fstackrender%2Fstackrender%2Fissues%2Fnew%2Fchoose
KarimTamanihttps://github.com/KarimTamani
stackrender:mainhttps://github.com/stackrender/stackrender/tree/main
albertoarena:build/build-oom-heap-flaghttps://github.com/albertoarena/stackrender/tree/build/build-oom-heap-flag
Conversation 0 https://github.com/stackrender/stackrender/pull/7
Commits 1 https://github.com/stackrender/stackrender/pull/7/commits
Checks 0 https://github.com/stackrender/stackrender/pull/7/checks
Files changed https://github.com/stackrender/stackrender/pull/7/files
Please reload this pagehttps://github.com/stackrender/stackrender/pull/7/files
build: raise Node heap for production build https://github.com/stackrender/stackrender/pull/7/files#top
Show all changes 1 commit https://github.com/stackrender/stackrender/pull/7/files
fe84e0d build: raise Node heap for production build albertoarena Aug 4, 2026 https://github.com/stackrender/stackrender/pull/7/commits/fe84e0d7489b8cc8a7bc94f7cd3699bcfb3c2a91
Clear filters https://github.com/stackrender/stackrender/pull/7/files
Please reload this pagehttps://github.com/stackrender/stackrender/pull/7/files
Please reload this pagehttps://github.com/stackrender/stackrender/pull/7/files
DOCKER.md https://github.com/stackrender/stackrender/pull/7/files#diff-972512ed94fce217ace10a2303390c321d822f967f2f008c353fb5f57152b7d0
package-lock.json https://github.com/stackrender/stackrender/pull/7/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
package.json https://github.com/stackrender/stackrender/pull/7/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
DOCKER.mdhttps://github.com/stackrender/stackrender/pull/7/files#diff-972512ed94fce217ace10a2303390c321d822f967f2f008c353fb5f57152b7d0
View file https://github.com/albertoarena/stackrender/blob/fe84e0d7489b8cc8a7bc94f7cd3699bcfb3c2a91/DOCKER.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrender/stackrender/pull/7/{{ revealButtonHref }}
https://github.com/stackrender/stackrender/pull/7/files#diff-972512ed94fce217ace10a2303390c321d822f967f2f008c353fb5f57152b7d0
https://github.com/stackrender/stackrender/pull/7/files#diff-972512ed94fce217ace10a2303390c321d822f967f2f008c353fb5f57152b7d0
package-lock.jsonhttps://github.com/stackrender/stackrender/pull/7/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
View file https://github.com/albertoarena/stackrender/blob/fe84e0d7489b8cc8a7bc94f7cd3699bcfb3c2a91/package-lock.json
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/stackrender/stackrender/pull/7/files
package.jsonhttps://github.com/stackrender/stackrender/pull/7/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
View file https://github.com/albertoarena/stackrender/blob/fe84e0d7489b8cc8a7bc94f7cd3699bcfb3c2a91/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/stackrender/stackrender/pull/7/{{ revealButtonHref }}
https://github.com/stackrender/stackrender/pull/7/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
https://github.com/stackrender/stackrender/pull/7/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
https://github.com/stackrender/stackrender/pull/7/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
https://github.com/stackrender/stackrender/pull/7/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.