packer-cn/website/pages/_document.js

23 lines
600 B
JavaScript
Raw Normal View History

2020-12-04 16:00:53 -05:00
import Document, { Html, Head, Main, NextScript } from 'next/document'
2020-03-18 18:46:47 -04:00
import HashiHead from '@hashicorp/react-head'
export default class MyDocument extends Document {
render() {
return (
2020-12-04 16:00:53 -05:00
<Html>
2020-03-18 18:46:47 -04:00
<HashiHead is={Head} />
<body>
<Main />
<NextScript />
<script
noModule
dangerouslySetInnerHTML={{
__html: `window.MSInputMethodContext && document.documentMode && document.write('<script src="/ie-custom-properties.js"><\\x2fscript>');`,
2020-03-18 18:46:47 -04:00
}}
/>
</body>
2020-12-04 16:00:53 -05:00
</Html>
2020-03-18 18:46:47 -04:00
)
}
}