35 lines
750 B
TypeScript
35 lines
750 B
TypeScript
![]() |
import Document, {
|
||
|
Html,
|
||
|
Head,
|
||
|
Main,
|
||
|
NextScript,
|
||
|
DocumentContext,
|
||
|
} from 'next/document'
|
||
|
|
||
|
class MyDocument extends Document {
|
||
|
static async getInitialProps(ctx: DocumentContext) {
|
||
|
const initialProps = await Document.getInitialProps(ctx)
|
||
|
return { ...initialProps }
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
<Html>
|
||
|
<Head>
|
||
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
||
|
<link
|
||
|
href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap"
|
||
|
rel="stylesheet"
|
||
|
/>
|
||
|
</Head>
|
||
|
<body>
|
||
|
<Main />
|
||
|
<NextScript />
|
||
|
</body>
|
||
|
</Html>
|
||
|
)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default MyDocument
|