mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-01 19:15:56 +01:00
23 lines
582 B
TypeScript
23 lines
582 B
TypeScript
import Document, { DocumentContext } from 'next/document';
|
|
import { ServerStyles, createStylesServer } from '@mantine/next';
|
|
|
|
const stylesServer = createStylesServer();
|
|
|
|
export default class _Document extends Document {
|
|
static async getInitialProps(ctx: DocumentContext) {
|
|
const initialProps = await Document.getInitialProps(ctx);
|
|
|
|
// Add your app specific logic here
|
|
|
|
return {
|
|
...initialProps,
|
|
styles: (
|
|
<>
|
|
{initialProps.styles}
|
|
<ServerStyles html={initialProps.html} server={stylesServer} />
|
|
</>
|
|
),
|
|
};
|
|
}
|
|
}
|