import Document, { DocumentContext, DocumentInitialProps, Head, Html, Main, NextScript, } from 'next/document'; import React from 'react'; class MyDocument extends Document { static async getInitialProps( ctx: DocumentContext ): Promise { const initialProps = await Document.getInitialProps(ctx); return initialProps; } render(): JSX.Element { return (
); } } export default MyDocument;