Skip to content

Commit e5faab3

Browse files
committed
whups
1 parent 819243a commit e5faab3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/next/src/build/utils.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -618,10 +618,7 @@ export async function printTreeView(
618618
const contSymbol = i === arr.length - 1 ? ' ' : '├'
619619

620620
let routes: { route: string; duration: number; avgDuration?: number }[]
621-
if (
622-
pageInfo.ssgPageDurations &&
623-
pageInfo.ssgPageDurations.some((d) => d > MIN_DURATION)
624-
) {
621+
if (pageInfo.ssgPageDurations?.some((d) => d > MIN_DURATION)) {
625622
const previewPages = totalRoutes === 8 ? 8 : Math.min(totalRoutes, 7)
626623
const routesWithDuration = pageInfo.ssgPageRoutes
627624
.map((route, idx) => ({
@@ -723,7 +720,7 @@ export async function printTreeView(
723720
]
724721

725722
// if some chunks are less than 10kb or we don't show it, we only show the total size of the rest
726-
const tenKbLimit = 0
723+
const tenKbLimit = 10 * 1000
727724
let restChunkSize = 0
728725
let restChunkCount = 0
729726
sharedChunks.forEach((fileName, index, { length }) => {

0 commit comments

Comments
 (0)