Skip to content

Very Large Docusaurus (3K Markdown Files) Fails to Build #10788

Answered by slorber
anaclumos asked this question in General
Discussion options

You must be logged in to vote

This is not crashing

It's running an infinite while loop while trying to SSG your pages, produced by your own swizzled code:

I don't know what's the purpose of that code, and why it previously worked. What I know is that removing it solves the problem.

With this code commented, on M3 pro, your site can build in 150 seconds / per locale, and consume < 1gb memory when running NODE_OPTIONS="--max-old-space-size=1000" pnpm run docusaurus build

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@slorber
Comment options

slorber Dec 24, 2024
Collaborator

@anaclumos
Comment options

@slorber
Comment options

slorber Dec 26, 2024
Collaborator

Answer selected by anaclumos
@anaclumos
Comment options

@anaclumos
Comment options

@slorber
Comment options

slorber Dec 30, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants