mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
27 lines
638 B
TypeScript
27 lines
638 B
TypeScript
import type { DocumentContext, DocumentInitialProps } from 'next/document';
|
|
import Document, { Head, Html, Main, NextScript } from 'next/document';
|
|
import type { ReactElement } from 'react';
|
|
import withServerStyleSheet from 'utils/withServerStyleSheet';
|
|
|
|
class MyDocument extends Document {
|
|
static async getInitialProps(
|
|
ctx: DocumentContext
|
|
): Promise<DocumentInitialProps> {
|
|
return withServerStyleSheet(ctx);
|
|
}
|
|
|
|
render(): ReactElement {
|
|
return (
|
|
<Html lang="en">
|
|
<Head />
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default MyDocument;
|