mirror of
				https://github.com/jakejarvis/jarv.is.git
				synced 2025-11-04 05:20:12 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			675 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			675 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import Document, { Html, Head, Main, NextScript } from "next/document";
 | 
						|
import classNames from "classnames";
 | 
						|
import * as config from "../lib/config";
 | 
						|
import type { DocumentContext } from "next/document";
 | 
						|
 | 
						|
class CustomDocument extends Document {
 | 
						|
  static async getInitialProps(ctx: DocumentContext) {
 | 
						|
    const initialProps = await Document.getInitialProps(ctx);
 | 
						|
    return { ...initialProps };
 | 
						|
  }
 | 
						|
 | 
						|
  render() {
 | 
						|
    return (
 | 
						|
      <Html lang={config.siteLocale?.replace("_", "-")}>
 | 
						|
        <Head />
 | 
						|
        <body className={classNames("page", "no-fade")}>
 | 
						|
          <Main />
 | 
						|
          <NextScript />
 | 
						|
        </body>
 | 
						|
      </Html>
 | 
						|
    );
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
export default CustomDocument;
 |