Unverified Commit 4eb34ef3 authored by Jan Kaifer's avatar Jan Kaifer Committed by GitHub

Fix `/` having wrong file size in build output (#46314)

fix #46260
parent cf8ca960
......@@ -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'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment