Skip to content

Commit ec8b3dc

Browse files
authored
[test] fix bad test fixuture for perf test (#77804)
### What Notice the test failing with error ``` [Error: The `<head>` tag may only be rendered once.] Error occurred prerendering page "/404". Read more: https://nextjs.org/docs/messages/prerender-error Error: The `<head>` tag may only be rendered once. at pushStartInstance (/private/var/folders/wv/xyy9xyz10sl4twdx_hp25mjc0000gn/T/next-install-774bc5a37376114 1677200de6e06e9fd9908f6aa5d9bf1124d02f79d153de089/node_modules/.pnpm/[email protected][email protected]/node_modules /react-dom/cjs/react-dom-server.edge.production.js:2161:17) ``` Turns out we had an extra `<head>` in the html
1 parent 4acb9e3 commit ec8b3dc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/e2e/pages-performance-mark/pages/_document.js

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Html, Head, Main, NextScript } from 'next/document'
33
export default function Document() {
44
return (
55
<Html>
6-
<Head />
76
<Head />
87
<body>
98
<Main />

0 commit comments

Comments
 (0)