Files
DefectingCat.github.io/pages/_document.tsx
DefectingCat 142be807ec Update loading progress
* remove nprogress
* fix loading issue

Add absolute import path aliases
* optimization imports

Add fallback on navbar image

Fix post images zoom wrapper as button

Fix module.css import error
* add router prefetch to post page

Add paging prefetch
* add post comment component
2021-12-02 03:50:02 +00:00

20 lines
501 B
TypeScript

import { ColorModeScript } from '@chakra-ui/react';
import NextDocument, { Html, Head, Main, NextScript } from 'next/document';
import theme from 'lib/theme';
export default class Document extends NextDocument {
render() {
return (
<Html lang="en">
<Head />
<body>
{/* 👇 Here's the script */}
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
<Main />
<NextScript />
</body>
</Html>
);
}
}