29 lines
819 B
JavaScript
29 lines
819 B
JavaScript
|
import Document, { Head, Main, NextScript } from 'next/document'
|
||
|
|
||
|
export default class MyDocument extends Document {
|
||
|
static async getInitialProps(ctx) {
|
||
|
const initialProps = await Document.getInitialProps(ctx)
|
||
|
return { ...initialProps }
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
<html>
|
||
|
<Head>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
|
<link rel="stylesheet" type="text/css" href="/css/nprogress.css" />
|
||
|
</Head>
|
||
|
<body>
|
||
|
<Main />
|
||
|
<NextScript />
|
||
|
<script
|
||
|
dangerouslySetInnerHTML={{
|
||
|
__html: `window.MSInputMethodContext && document.documentMode && document.write('<script src="/ie-custom-properties.js"><\\x2fscript>');`
|
||
|
}}
|
||
|
/>
|
||
|
</body>
|
||
|
</html>
|
||
|
)
|
||
|
}
|
||
|
}
|