You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
805 B
33 lines
805 B
import type { DocumentContext, DocumentInitialProps } from 'next/document';
|
|
import Document, { Head, Html, Main, NextScript } from 'next/document';
|
|
|
|
class MyDocument extends Document {
|
|
static async getInitialProps(
|
|
ctx: DocumentContext
|
|
): Promise<DocumentInitialProps> {
|
|
const initialProps = await Document.getInitialProps(ctx);
|
|
|
|
return initialProps;
|
|
}
|
|
|
|
render(): JSX.Element {
|
|
return (
|
|
<Html>
|
|
<Head>
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap"
|
|
/>
|
|
</Head>
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default MyDocument;
|