Skip to content

Commit

Permalink
🐛 fix: fix SSR style error
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jul 22, 2023
1 parent 5c01fd0 commit 289eae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/_document.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
(
Expand Down

0 comments on commit 289eae7

Please sign in to comment.