aec75c2f06
### 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 <jj@jjsweb.site> Co-authored-by: Jiachi Liu <inbox@huozhi.im>
13 lines
268 B
TypeScript
13 lines
268 B
TypeScript
import React from 'react'
|
|
import styles from '../styles/index.module.css'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<>
|
|
<p id="hello" className={styles.content}>
|
|
hello from /
|
|
</p>
|
|
<p id="react-version">{React.version}</p>
|
|
</>
|
|
)
|
|
}
|