mirror of
https://github.com/LaconicNetwork/laconic.com.git
synced 2026-03-01 11:44:07 +00:00
29 lines
504 B
TypeScript
29 lines
504 B
TypeScript
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 lang="en">
|
|
<Head />
|
|
<body style={{ opacity: 0 }}>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default MyDocument
|