mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? `next build` is incorrectly reporting file size stats for the root path when using the app dir ### Why? In #50768, the denormalization logic was removed for appDir routes, but `pagesManifest` has the root page keyed by `/` while the actual path will be `/index`. ### How? This re-adds a simpler denormalize function that just replaces `/index` with `/`. semi-related: #42819 Fixes #51692 link NEXT-1306 --------- Co-authored-by: JJ Kasper <[email protected]> Co-authored-by: Jiachi Liu <[email protected]>
15 lines
287 B
TypeScript
15 lines
287 B
TypeScript
'use client'
|
|
import React from 'react'
|
|
import styles from '../../styles/index.module.css'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<>
|
|
<p id="hello" className={styles.content}>
|
|
hello from /foo
|
|
</p>
|
|
<p id="react-version">{React.version}</p>
|
|
</>
|
|
)
|
|
}
|