chore: move meta viewport back to app after next warning

This commit is contained in:
Matthew Russell 2022-12-02 15:24:15 -08:00
parent d5fef8729a
commit 71c419a818
No known key found for this signature in database
GPG Key ID: EF695622F2C5E3D8
2 changed files with 4 additions and 1 deletions

View File

@ -47,6 +47,10 @@ function AppBody({ Component }: AppProps) {
return ( return (
<ThemeContext.Provider value={theme}> <ThemeContext.Provider value={theme}>
<Head>
{/* Cannot use meta tags in _document.page.tsx see https://nextjs.org/docs/messages/no-document-viewport-meta */}
<meta name="viewport" content="width=device-width, initial-scale=1" />
</Head>
<Title /> <Title />
<div className="h-full relative dark:bg-black dark:text-white z-0 grid grid-rows-[min-content,1fr,min-content]"> <div className="h-full relative dark:bg-black dark:text-white z-0 grid grid-rows-[min-content,1fr,min-content]">
<AppLoader> <AppLoader>

View File

@ -4,7 +4,6 @@ export default function Document() {
return ( return (
<Html> <Html>
<Head> <Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://static.vega.xyz/fonts.css" /> <link rel="stylesheet" href="https://static.vega.xyz/fonts.css" />
<link <link
rel="preload" rel="preload"