28ef2473af
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 <18369201+balazsorban44@users.noreply.github.com>
14 lines
236 B
JavaScript
14 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>
|
|
)
|
|
}
|