diff --git a/pages/_document.tsx b/pages/_document.tsx index a7a85d5..7ead867 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -1,15 +1,17 @@ -import { Html, Main, Head, NextScript } from 'next/document' +import Document, { Html, Main, Head, NextScript } from 'next/document' -const NextDocument: React.FC = (): JSX.Element => { - return ( - - - -
- - - - ) +class MyDocument extends Document { + render(): JSX.Element { + return ( + + + +
+ + + + ) + } } -export default NextDocument +export default MyDocument