-
Notifications
You must be signed in to change notification settings - Fork 112
/
_document.tsx
45 lines (38 loc) · 1.94 KB
/
_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
38
39
40
41
42
43
44
45
import Document, { Head, Html, Main, NextScript } from "next/document";
import type { DocumentContext, DocumentInitialProps } from "next/document";
class _Document extends Document {
static async getInitialProps(ctx: DocumentContext): Promise<DocumentInitialProps> {
// eslint-disable-next-line sonarjs/prefer-immediate-return
const initialProps = await Document.getInitialProps(ctx);
return initialProps;
}
render(): React.ReactElement {
return (
<Html lang="en" dir="ltr">
<Head>
<link rel="preconnect" href="https://assets.twilio.com" crossOrigin="" />
<link rel="stylesheet" href="https://assets.twilio.com/public_assets/paste-fonts/1.5.2/fonts.css" />
<link rel="sitemap" type="application/xml" href="/sitemap.xml" />
<link rel="manifest" href="/manifest.json" />
<link rel="icon" href="/favicon-32x32.png" type="image/png" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<meta name="theme-color" content="#141c2c" />
<link rel="apple-touch-icon" sizes="48x48" href="/icons/icon-48x48.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/icons/icon-72x72.png" />
<link rel="apple-touch-icon" sizes="96x96" href="/icons/icon-96x96.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/icons/icon-144x144.png" />
<link rel="apple-touch-icon" sizes="192x192" href="/icons/icon-192x192.png" />
<link rel="apple-touch-icon" sizes="256x256" href="/icons/icon-256x256.png" />
<link rel="apple-touch-icon" sizes="384x384" href="/icons/icon-384x384.png" />
<link rel="apple-touch-icon" sizes="512x512" href="/icons/icon-512x512.png" />
</Head>
<body>
<noscript key="noscript">This app works best with JavaScript enabled.</noscript>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default _Document;