cal.pub0.org/pages/_document.tsx

23 lines
470 B
TypeScript

import Document, { Html, Head, Main, NextScript } from "next/document";
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
<Html>
<Head />
<body className="dark:bg-gray-900 bg-white">
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;