Building Extremely Large Static Site in Pieces #81024
Unanswered
HasancanCakicioglu
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I’m working on an extremely large website roughly 100,000+ static pages but I’m already hitting “out of memory” errors during build with just 1,000 pages. I’m aware of techniques like:
experimental: {
webpackBuildWorker: true,
webpackMemoryOptimizations: true,
}
and increasing Node’s heap via --max-old-space-size, or even renting a high‑RAM VPS to perform the build. However, if those approaches still aren’t enough, is there any way to export a fully static Next.js site in segments? For example, build all pages under a/ first, then all under b/, and finally merge them into a single out/ folder for hosting. Any guidance or recommendations would be greatly appreciated!
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions