pineafan | 9eec83e | 2021-11-15 21:15:35 +0000 | [diff] [blame^] | 1 | import Document, { Html, Head, Main, NextScript } from 'next/document' |
2 | |||||
3 | class Doc extends Document { | ||||
4 | static async getInitialProps(ctx) { | ||||
5 | const initialProps = await Document.getInitialProps(ctx) | ||||
6 | return { ...initialProps } | ||||
7 | } | ||||
8 | |||||
9 | render() { | ||||
10 | return ( | ||||
11 | <Html lang="en"> | ||||
12 | <Head> | ||||
13 | <meta charSet="utf-8" /> | ||||
14 | </Head> | ||||
15 | <body> | ||||
16 | <Main /> | ||||
17 | <NextScript /> | ||||
18 | </body> | ||||
19 | </Html> | ||||
20 | ) | ||||
21 | } | ||||
22 | } | ||||
23 | |||||
24 | export default Doc |