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.
36 lines
663 B
36 lines
663 B
import React from 'react';
|
|
import Document, {
|
|
Html,
|
|
Head,
|
|
Main,
|
|
NextScript,
|
|
DocumentContext,
|
|
DocumentInitialProps,
|
|
} 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="stylesheet" href="https://rsms.me/inter/inter.css" />
|
|
</Head>
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default MyDocument;
|