Skip to content

Commit 651fed2

Browse files
committed
Add missing key to default head
1 parent efdeccc commit 651fed2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/next/src/shared/lib/head.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ type WithInAmpMode = {
1212
}
1313

1414
export function defaultHead(inAmpMode = false): JSX.Element[] {
15-
const head = [<meta charSet="utf-8" />]
15+
const head = [<meta charSet="utf-8" key="charset" />]
1616
if (!inAmpMode) {
17-
head.push(<meta name="viewport" content="width=device-width" />)
17+
head.push(
18+
<meta name="viewport" content="width=device-width" key="viewport" />
19+
)
1820
}
1921
return head
2022
}

0 commit comments

Comments
 (0)