Skip to content

Commit

Permalink
fix(baker): remove progress bar throttling
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbrgl committed May 22, 2024
1 parent eb2966e commit 184c473
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions baker/SiteBaker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export class SiteBaker {
"--- BakeAll [:bar] :current/:total :elapseds :name\n",
{
total: getProgressBarTotal(bakeSteps),
renderThrottle: 0,
}
)
this.explorerAdminServer = new ExplorerAdminServer(GIT_CMS_DIR)
Expand Down Expand Up @@ -326,8 +327,6 @@ export class SiteBaker {
keyBy(images, "filename")
)

// This step runs so quickly that the progress bar doesn't log, so we add a small delay
await new Promise((resolve) => setTimeout(resolve, 10))
this.progressBar.tick({
name: `✅ Prefetched ${Object.values(imageMetadataDictionary).length} images`,
})
Expand Down

0 comments on commit 184c473

Please sign in to comment.