mirror of https://github.com/MaxLeiter/Drift
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			31 lines
		
	
	
		
			760 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			31 lines
		
	
	
		
			760 B
		
	
	
	
		
			TypeScript
		
	
import Document, { Html, Head, Main, NextScript, DocumentContext } from 'next/document'
 | 
						|
import { CssBaseline } from '@geist-ui/core'
 | 
						|
 | 
						|
class MyDocument extends Document {
 | 
						|
    static async getInitialProps(ctx: DocumentContext) {
 | 
						|
        const initialProps = await Document.getInitialProps(ctx)
 | 
						|
        const styles = CssBaseline.flush()
 | 
						|
 | 
						|
        return {
 | 
						|
            ...initialProps,
 | 
						|
            styles: (
 | 
						|
                <>
 | 
						|
                    {initialProps.styles}
 | 
						|
                    {styles}
 | 
						|
                </>
 | 
						|
            )
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    render() {
 | 
						|
        return (<Html lang="en">
 | 
						|
            <Head />
 | 
						|
            <body>
 | 
						|
                <Main />
 | 
						|
                <NextScript />
 | 
						|
            </body>
 | 
						|
        </Html>)
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
export default MyDocument |