diff --git a/web/pages/_document.tsx b/web/pages/_document.tsx index e7e504556..a2e849677 100644 --- a/web/pages/_document.tsx +++ b/web/pages/_document.tsx @@ -34,7 +34,6 @@ const Doc = () => ( ); - /* Yoinked from https://ant.design/docs/react/use-with-next#using-pages-router. Change if someone figures out a way to @@ -47,7 +46,8 @@ Doc.getInitialProps = async (ctx: DocumentContext) => { ctx.renderPage = () => originalRenderPage({ enhanceApp: App => props => ( - + // layer forces antd to generate new css so that the cache can be safely removed + ), @@ -60,7 +60,7 @@ Doc.getInitialProps = async (ctx: DocumentContext) => { styles: ( <> {initialProps.styles} -