Files: 37c280147b9bc6348d2d1dcb7f850fd2b2330581 / pages / _document.tsx
466 bytesRaw
1 | import Document, { Html, Head, Main, NextScript } from 'next/document'; |
2 | |
3 | class MyDocument extends Document { |
4 | static async getInitialProps(ctx) { |
5 | const initialProps = await Document.getInitialProps(ctx); |
6 | |
7 | return { |
8 | ...initialProps |
9 | }; |
10 | } |
11 | |
12 | render() { |
13 | return ( |
14 | <Html lang="en"> |
15 | <Head> |
16 | </Head> |
17 | <body> |
18 | <Main /> |
19 | <NextScript /> |
20 | </body> |
21 | </Html> |
22 | ) |
23 | } |
24 | } |
25 | |
26 | export default MyDocument |
27 |
Built with git-ssb-web