mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +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]>
17 lines
255 B
TypeScript
17 lines
255 B
TypeScript
export const metadata = {
|
|
title: 'Next.js',
|
|
description: 'Generated by Next.js',
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|