Skip to content

Commit 078ec3b

Browse files
committed
chore: move meta tag from _document to _app
1 parent c9c5887 commit 078ec3b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/pages/_app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const App = ({ Component, pageProps }: CustomAppProps) => {
5454
return (
5555
<AppCacheProvider {...pageProps}>
5656
<Head>
57+
<meta content="minimum-scale=1, initial-scale=1, width=device-width" name="viewport" />
5758
<style>{openSansFontCss}</style>
5859
</Head>
5960
<ThemeProviders>

src/pages/_document.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const MyDocument = (props: DocumentProps) => {
1111
return (
1212
<Html lang="en">
1313
<Head>
14-
<meta content="minimum-scale=1, initial-scale=1, width=device-width" name="viewport" />
1514
<DocumentHeadTags {...props} />
1615
</Head>
1716
<body>

0 commit comments

Comments
 (0)