import Document , { DocumentContext , Head , Html , Main , NextScript , } from "next/document" ; class MyDocument extends Document { static async getInitialProps ( ctx ) { const initialProps = await Document . getInitialProps ( ctx ) ; return await Document . getInitialProps ( ctx ) ; } render ( ) { return ( < Html lang = "en" > < Head > < script async src = "https://cdn.splitbee.io/sb.js" / > < /Head> < body > < Main /> < NextScript / > < /body> < /Html>); } } export default MyDocument ;