From 4f1aad895a0ad85e47a6465961d73594a22e2b9b Mon Sep 17 00:00:00 2001 From: Sakura Knoll Date: Tue, 5 Apr 2022 07:36:21 +0900 Subject: [PATCH] Move viewport tag to _app --- src/pages/_app.tsx | 4 ++++ src/pages/_document.tsx | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index f2e44f6c..328d4f32 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -7,6 +7,7 @@ import NProgress from 'nprogress' import { useRouter } from 'next/router' import '../styles/nprogress.css' import '../styles/nextjs.css' +import Head from 'next/head' function MyApp({ Component, pageProps }: AppProps) { const router = useRouter() @@ -31,6 +32,9 @@ function MyApp({ Component, pageProps }: AppProps) { return ( + + + ) diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 0245b0ab..6078742e 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -38,10 +38,6 @@ class MyDocument extends Document { -