Files: 9fe4692300e786f603d0456a8df7e201b1ce41ab / pages / _document.tsx
437 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 | return { ...initialProps } |
7 | } |
8 | |
9 | render() { |
10 | return ( |
11 | <Html lang="en"> |
12 | <Head /> |
13 | <body> |
14 | <Main /> |
15 | <NextScript /> |
16 | </body> |
17 | </Html> |
18 | ) |
19 | } |
20 | } |
21 | |
22 | export default MyDocument |
23 |
Built with git-ssb-web