mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 fix: fix SSR style error
This commit is contained in:
@@ -2,7 +2,7 @@ import { StyleProvider, extractStaticStyle } from 'antd-style';
|
||||
import Document, { DocumentContext, Head, Html, Main, NextScript } from 'next/document';
|
||||
|
||||
class MyDocument extends Document {
|
||||
static async getStaticProps(ctx: DocumentContext) {
|
||||
static async getInitialProps(ctx: DocumentContext) {
|
||||
const page = await ctx.renderPage({
|
||||
enhanceApp: (App) => (props) =>
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user