2020-12-17 21:53:33 +00:00
|
|
|
import Document, { Html, Head, Main, NextScript } from 'next/document'
|
2020-03-30 17:30:56 +00:00
|
|
|
import HashiHead from '@hashicorp/react-head'
|
2020-01-18 00:18:09 +00:00
|
|
|
|
|
|
|
export default class MyDocument extends Document {
|
|
|
|
static async getInitialProps(ctx) {
|
|
|
|
const initialProps = await Document.getInitialProps(ctx)
|
|
|
|
return { ...initialProps }
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2020-12-17 21:53:33 +00:00
|
|
|
<Html>
|
2020-03-30 17:30:56 +00:00
|
|
|
<HashiHead is={Head} />
|
2020-01-18 00:18:09 +00:00
|
|
|
<body>
|
|
|
|
<Main />
|
|
|
|
<NextScript />
|
|
|
|
<script
|
2020-03-30 17:30:56 +00:00
|
|
|
noModule
|
2020-01-18 00:18:09 +00:00
|
|
|
dangerouslySetInnerHTML={{
|
2020-12-17 21:53:33 +00:00
|
|
|
__html: `window.MSInputMethodContext && document.documentMode && document.write('<script src="/ie-custom-properties.js"><\\x2fscript>');`,
|
2020-01-18 00:18:09 +00:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</body>
|
2020-12-17 21:53:33 +00:00
|
|
|
</Html>
|
2020-01-18 00:18:09 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|