Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
28 lines
798 B
JavaScript
28 lines
798 B
JavaScript
import * as React from 'react';
|
|
import { Html, Head, Main, NextScript } from 'next/document';
|
|
import { DocumentHeadTags, documentGetInitialProps } from '@mui/material-nextjs/v15-pagesRouter';
|
|
import theme from '../src/theme';
|
|
|
|
export default function MyDocument(props) {
|
|
return (
|
|
<Html lang="en">
|
|
<Head>
|
|
{/* PWA primary color */}
|
|
<meta name="theme-color" content={theme.palette.primary.main} />
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<meta name="emotion-insertion-point" content="" />
|
|
<DocumentHeadTags {...props} />
|
|
</Head>
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|
|
|
|
MyDocument.getInitialProps = async (ctx) => {
|
|
const finalProps = await documentGetInitialProps(ctx);
|
|
return finalProps;
|
|
};
|