From ed0aa08641adbf898c092e97af3e57c51570002d Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 22 Oct 2022 08:45:40 -0700 Subject: [PATCH] Fix viewport meta tag location see https://nextjs.org/docs/messages/no-document-viewport-meta --- src/pages/_app.jsx | 5 +++++ src/pages/_document.jsx | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx index e87bd90ae..e99303abc 100644 --- a/src/pages/_app.jsx +++ b/src/pages/_app.jsx @@ -1,6 +1,7 @@ /* eslint-disable react/jsx-props-no-spreading */ import { SWRConfig } from "swr"; import { appWithTranslation } from "next-i18next"; +import Head from "next/head"; import "styles/globals.css"; import "styles/theme.css"; @@ -18,6 +19,10 @@ function MyApp({ Component, pageProps }) { fetcher: (resource, init) => fetch(resource, init).then((res) => res.json()), }} > + + {/* https://nextjs.org/docs/messages/no-document-viewport-meta */} + + diff --git a/src/pages/_document.jsx b/src/pages/_document.jsx index 5f9e06fbc..7e02a0058 100644 --- a/src/pages/_document.jsx +++ b/src/pages/_document.jsx @@ -9,7 +9,6 @@ export default function Document() { content="A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations." /> -