Skip to content

Commit

Permalink
Add missing key to default head
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 5, 2024
1 parent efdeccc commit 651fed2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/next/src/shared/lib/head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ type WithInAmpMode = {
}

export function defaultHead(inAmpMode = false): JSX.Element[] {
const head = [<meta charSet="utf-8" />]
const head = [<meta charSet="utf-8" key="charset" />]
if (!inAmpMode) {
head.push(<meta name="viewport" content="width=device-width" />)
head.push(
<meta name="viewport" content="width=device-width" key="viewport" />
)
}
return head
}
Expand Down

0 comments on commit 651fed2

Please sign in to comment.