open-consul/website/pages/_document.js

30 lines
758 B
JavaScript
Raw Normal View History

import Document, { Html, Head, Main, NextScript } from 'next/document'
2020-04-06 20:27:35 +00:00
import HashiHead from '@hashicorp/react-head'
export default class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx)
return { ...initialProps }
}
render() {
return (
<Html>
<Head>
<HashiHead />
</Head>
2020-04-06 20:27:35 +00:00
<body>
<Main />
<NextScript />
<script
noModule
dangerouslySetInnerHTML={{
__html: `window.MSInputMethodContext && document.documentMode && document.write('<script src="/ie-custom-properties.js"><\\x2fscript>');`,
}}
/>
</body>
</Html>
2020-04-06 20:27:35 +00:00
)
}
}