2021-09-19 02:21:42 +02:00
|
|
|
import Document, {
|
|
|
|
DocumentContext,
|
|
|
|
Head,
|
|
|
|
Html,
|
|
|
|
Main,
|
|
|
|
NextScript,
|
|
|
|
} from 'next/document';
|
|
|
|
|
|
|
|
class MyDocument extends Document {
|
|
|
|
static async getInitialProps(ctx: DocumentContext) {
|
|
|
|
const initialProps = await Document.getInitialProps(ctx);
|
|
|
|
return { ...initialProps };
|
|
|
|
}
|
2021-01-22 03:43:42 +01:00
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2021-09-25 08:21:48 +02:00
|
|
|
<Html prefix="og: http://ogp.me/ns#" lang="en">
|
2021-09-19 02:21:42 +02:00
|
|
|
<Head />
|
2021-01-22 03:43:42 +01:00
|
|
|
<body>
|
|
|
|
<Main />
|
|
|
|
<NextScript />
|
|
|
|
</body>
|
2021-02-10 09:38:27 +01:00
|
|
|
</Html>
|
2021-01-22 03:43:42 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2021-09-19 02:21:42 +02:00
|
|
|
|
|
|
|
export default MyDocument;
|