-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(prerender): Fold output to prevent crashing on large prerender co…
…unts (#10888) **Problem** A user highlighted on our [forum](https://community.redwoodjs.com/t/prerender-maximum-callstack-size-exceeded/7256) that when you prerender a large number of routes the CLI crashes. This appears to be a result of having too many Listr tasks in our CLI output. **Changes** 1. If the number of routes for a particular route is beyond some threshold we fold the output into one task. Instead of showing each individual route we show the route's name a progress indicator.
- Loading branch information
1 parent
f2a614c
commit 80da29f
Showing
2 changed files
with
136 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- fix(prerender): Fold output to prevent crashing on large prerender counts (#10888) by @Josh-Walker-GM | ||
|
||
This change alters the CLI output during prerendering to prevent crashes when prerendering a large number (>100,000) of routes. |
This file contains 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