mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-02 11:16:24 -05:00
32 lines
553 B
TypeScript
32 lines
553 B
TypeScript
import { ColorModeScript } from "@chakra-ui/react";
|
|
import Document, {
|
|
DocumentContext,
|
|
Head,
|
|
Html,
|
|
Main,
|
|
NextScript,
|
|
} from "next/document";
|
|
|
|
class MyDocument extends Document {
|
|
static async getInitialProps(ctx: DocumentContext) {
|
|
const initialProps = await Document.getInitialProps(ctx);
|
|
|
|
return initialProps;
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Html>
|
|
<Head />
|
|
<body>
|
|
<ColorModeScript />
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default MyDocument;
|