From 462b2fe10cf45da3dbcb5ee20ca6dfb79f46e6b6 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 4 Nov 2021 13:34:02 +0200 Subject: Initial commit --- pages/_document.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pages/_document.tsx (limited to 'pages/_document.tsx') diff --git a/pages/_document.tsx b/pages/_document.tsx new file mode 100644 index 0000000..8f33f41 --- /dev/null +++ b/pages/_document.tsx @@ -0,0 +1,22 @@ +import Document, { Html, Head, Main, NextScript, DocumentInitialProps, DocumentContext } from "next/document"; + +class MyDocument extends Document { + static async getInitialProps(ctx: DocumentContext): Promise { + const initialProps = await Document.getInitialProps(ctx); + return { ...initialProps }; + } + + render(): JSX.Element { + return ( + + + +
+ + + + ); + } +} + +export default MyDocument; \ No newline at end of file -- cgit v1.3