-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaging optimization #4227
Comments
How long does it take? Try disabling your plugins. It takes around 5 minutes to build a 1000 page site 👀 |
Yes, when Vitepress encounters a large number of issues, it basically reaches a bottleneck, causing me to run npm run docs: dev and it feels like it's dead for a long time without any response. Is there still room for optimization? I don't have a specific quantity test here, but there should be over 1000 MD files |
@ajiho Does this happen on the latest vitepress version too? Do you have local search or twoslash enabled? Can you try disabling them and then testing once? |
vitepress version is 1.5.0 . When I turn off local search, the development server can start quickly .But we encountered new problems again . When I run npm run docs: build, it directly reports an error
I found the same problem #issues/2870 I have tried your solution #issuecomment-1696752713 But still unable to solve the problem When I reduce the number of markdown files to one tenth, I can successfully build it @brc-dd Do you know the reason? |
Can you try adjusting the buildConcurrency? import { defineConfig } from 'vitepress'
export default defineConfig({
buildConcurrency: 1 // this will be very slow, but please check if out of heap issue happens with this too
}) |
After trying, it's still the same 'JavaScript heap out of memory' . I don't think this is an issue with Vitepress . |
By the way, the default theme was used |
If anyone needs to perform repairs and testing, can notify me. After the recent version upgrade, we are experiencing the same build failure issue both locally machine and GitHub Actions.
|
Too many markdown files result in a long packaging time. How can we optimize this time
The text was updated successfully, but these errors were encountered: