| import NextDocument, { | |
| DocumentContext, | |
| Head, | |
| Html, | |
| Main, | |
| NextScript, | |
| } from "next/document" | |
| export default class Document extends NextDocument { | |
| static getInitialProps(ctx: DocumentContext) { | |
| return NextDocument.getInitialProps(ctx) | |
| } | |
| render() { | |
| return ( | |
| <Html suppressHydrationWarning> | |
| <Head /> | |
| <body> | |
| <Main /> | |
| <NextScript /> | |
| </body> | |
| </Html> | |
| ) | |
| } | |
| } | |