mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
9313c51bc4
Introduce a new way to search for `not-found` component that based on the request pathname and current loader tree of that route. And we search the proper not-found in the finall catch closure of app rendering, so that we don't have to pass down the root layout to app-router to create the extra error boundary. This ensures the root layout doesn't have duplicated rendering for normal requests Fixes NEXT-1220 Fixes #49115
14 lines
292 B
JavaScript
14 lines
292 B
JavaScript
import '../styles/global.css'
|
|
import './style.css'
|
|
|
|
export const revalidate = 0
|
|
|
|
export default function Root({ children }) {
|
|
return (
|
|
<html className="this-is-the-document-html">
|
|
<head></head>
|
|
<body className="this-is-the-document-body">{children}</body>
|
|
</html>
|
|
)
|
|
}
|