Open History to see the last commit
1import Document, { Html, Head, Main, NextScript } from 'next/document'
2β
3class 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>
12 <Head />
13 <body className="font-sans antialiased text-gray-900">
14 <Main />
15 <NextScript />
16 </body>
17 </Html>
18 )
19 }
20}
21β
22export default MyDocument