2020-01-18 00:18:09 +00:00
|
|
|
import Document, { 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 (
|
|
|
|
<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={{
|
|
|
|
__html: `window.MSInputMethodContext && document.documentMode && document.write('<script src="/ie-custom-properties.js"><\\x2fscript>');`
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|