Skip to content

Commit

Permalink
Merge pull request #24 from INIAD-ts/fix/#23
Browse files Browse the repository at this point in the history
`_document.tsx`内での`<title>`の使用をやめる
  • Loading branch information
mst-mkt authored Jun 27, 2024
2 parents ce3e629 + 7c94d76 commit 6fffd8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import type { AppProps } from 'next/app';
import Head from 'next/head';
import '../styles/globals.css';

function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
return;
<>
<Head>
<title>Create Next App</title>
</Head>
<Component {...pageProps} />
</>;
}
export default MyApp;
1 change: 0 additions & 1 deletion src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export default function Document() {
return (
<Html lang="ja">
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="favicon.ico" />
</Head>
Expand Down

0 comments on commit 6fffd8d

Please sign in to comment.