-
-
Notifications
You must be signed in to change notification settings - Fork 721
/
_document.tsx
34 lines (31 loc) · 895 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
import {
BRAND_DESCRIPTION,
BRAND_KEYWORDS,
BRAND_TITLE
} from "@utils/constants";
import Document, { Head, Html, Main, NextScript } from "next/document";
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
<Html lang="en">
<Head>
<link rel="shortcut icon" href="favicon.png" />
<meta name="theme-color" content="#e91e63" />
<meta name="title" content={BRAND_TITLE} />
<meta name="description" content={BRAND_DESCRIPTION} />
<meta name="keywords" content={BRAND_KEYWORDS} />
<link rel="manifest" href="/manifest.json" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;