mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-22 20:58:01 -05:00
This is being merged for further testing so as to not block the progress of `develop` & not require more rebases.
39 lines
891 B
TypeScript
39 lines
891 B
TypeScript
import Document, {
|
|
DocumentContext,
|
|
DocumentInitialProps,
|
|
Head,
|
|
Html,
|
|
Main,
|
|
NextScript,
|
|
} from 'next/document';
|
|
|
|
class MetaDocument extends Document {
|
|
static async getInitialProps(
|
|
ctx: DocumentContext,
|
|
): Promise<DocumentInitialProps> {
|
|
const initialProps = await Document.getInitialProps(ctx);
|
|
return { ...initialProps };
|
|
}
|
|
|
|
// eslint-disable-next-line class-methods-use-this
|
|
render(): JSX.Element {
|
|
return (
|
|
<Html>
|
|
<Head>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Exo+2:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<link rel="shortcut icon" href="/favicon.png" />
|
|
</Head>
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default MetaDocument;
|