perf(ssg): add ssg.experimentalWorker based on tinypool to speed up ssg process#2394
Merged
perf(ssg): add ssg.experimentalWorker based on tinypool to speed up ssg process#2394
ssg.experimentalWorker based on tinypool to speed up ssg process#2394Conversation
ca972c1 to
bdf0ae4
Compare
✅ Deploy Preview for rspress-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for rspress ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ssg.experimentalWorker based on tinypool to speed up ssg process
JounQin
approved these changes
Jul 21, 2025
Timeless0911
approved these changes
Jul 21, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
ssg
boolean | { experimentalWorker?: boolean; experimentalLoose?: boolean; }trueWhether to enable static site generation. Rspress enable it by default to generate CSR outputs and SSG outputs.
If your document site is only required to be used in CSR scenarios, you can set
ssgtofalse, and Rspress will only generate CSR outputs.experimentalWorker
booleanfalseAfter enabled, you can use Worker to speed up the SSG process. It is suitable for large document sites and is based on tinypool.
experimentalLoose
booleanfalseAfter enabled, some errors in the SSG process will be ignored and other pages will continue to be generated, but the SSG of some pages will be missing. It is suitable for SSG errors that are used by large document sites to bypass a small number of pages. It is not recommended to actively enable them.
Related Issue
close #2272
Checklist