mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
There're various of cases would cause the `beforeRender` performance mark is not existed in the performance entries, learned from the issues description. We have to check if that mark is existed. This PR also refactors all the mark names and measurement names into constants so that we won't easily mistype them Fixes #20743 Fixes #40903 Fixes #47560 Co-authored-by: Balázs Orbán <[email protected]>
15 lines
236 B
JavaScript
15 lines
236 B
JavaScript
import { Html, Head, Main, NextScript } from 'next/document'
|
|
|
|
export default function Document() {
|
|
return (
|
|
<Html>
|
|
<Head />
|
|
<Head />
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
)
|
|
}
|