github.com/uchennaokeke444/nomad@v0.11.8/website/pages/_document.js (about) 1 import Document, { Head, Main, NextScript } from 'next/document' 2 import HashiHead from '@hashicorp/react-head' 3 4 export default class MyDocument extends Document { 5 static async getInitialProps(ctx) { 6 const initialProps = await Document.getInitialProps(ctx) 7 return { ...initialProps } 8 } 9 10 render() { 11 return ( 12 <html> 13 <HashiHead is={Head} /> 14 <body> 15 <Main /> 16 <NextScript /> 17 <script 18 noModule 19 dangerouslySetInnerHTML={{ 20 __html: `window.MSInputMethodContext && document.documentMode && document.write('<script src="/ie-custom-properties.js"><\\x2fscript>');` 21 }} 22 /> 23 </body> 24 </html> 25 ) 26 } 27 }