Completed
Push — master ( 09e565...e7a3ed )
by Daniel
20s queued 11s
created

MyDocument.render   A

Complexity

Conditions 1

Size

Total Lines 27
Code Lines 24

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 24
dl 0
loc 27
c 0
b 0
f 0
rs 9.304
cc 1
1
import Document, {
2
  Html,
3
  Head,
4
  Main,
5
  NextScript,
6
  DocumentContext,
7
} from "next/document";
8
9
class MyDocument extends Document {
10
  static async getInitialProps(ctx: DocumentContext) {
11
    const initialProps = await Document.getInitialProps(ctx);
12
    return { ...initialProps };
13
  }
14
15
  render() {
16
    return (
17
      <Html>
18
        <Head>
19
          <meta
20
            name="viewport"
21
            content="initial-scale=1.0, width=device-width"
22
          />
23
          <meta name="description" content="NAV Jobb Utforsker" />
24
          <link rel="icon" href="/favicon.ico" />
25
          <link rel="preconnect" href="https://fonts.googleapis.com" />
26
          <link
27
            rel="preconnect"
28
            href="https://fonts.gstatic.com"
29
            crossOrigin="true"
30
          />
31
          <link
32
            href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap"
33
            rel="stylesheet"
34
          />
35
        </Head>
36
        <body>
37
          <Main />
38
          <NextScript />
39
        </body>
40
      </Html>
41
    );
42
  }
43
}
44
45
export default MyDocument;
46