oxen-website/pages/_document.tsx

29 lines
518 B
TypeScript
Raw Permalink Normal View History

import Document, {
DocumentContext,
Head,
Html,
Main,
NextScript,
} from 'next/document';
class MyDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
2021-01-22 03:43:42 +01:00
render() {
return (
<Html prefix="og: http://ogp.me/ns#" lang="en">
<Head />
2021-01-22 03:43:42 +01:00
<body>
<Main />
<NextScript />
</body>
2021-02-10 09:38:27 +01:00
</Html>
2021-01-22 03:43:42 +01:00
);
}
}
export default MyDocument;