Skip to content

Commit

Permalink
Fix / having wrong file size in build output (#46314)
Browse files Browse the repository at this point in the history
fix #46260
  • Loading branch information
jankaifer authored Feb 23, 2023
1 parent cf8ca96 commit 4eb34ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/next/src/build/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ function sum(a: ReadonlyArray<number>): number {
}

function denormalizeAppPagePath(page: string): string {
// `/` is normalized to `/index` and `/index` is normalized to `/index/index`
if (page.endsWith('/index')) {
page = page.replace(/\/index$/, '')
}
return page + '/page'
}

Expand Down

0 comments on commit 4eb34ef

Please sign in to comment.