forked from denoland/dotland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_document.tsx
37 lines (34 loc) · 870 Bytes
/
_document.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2020 the Deno authors. All rights reserved. MIT license.
import React from "react";
import Document, {
Html,
Head,
Main,
NextScript,
DocumentContext,
} from "next/document";
export default class DenoDocDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
<Html lang="en">
<Head>
<link rel="stylesheet" href="/fonts/inter/inter.css" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/images/icons/apple-touch-icon-180x180.png"
/>
<link rel="manifest" href="/site.webmanifest" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}