1
2import Document, { Html, Head, Main, NextScript } from 'next/document'
3
4class MyDocument extends Document {
5 static async getInitialProps(ctx) {
6 const initialProps = await Document.getInitialProps(ctx)
7 return { ...initialProps }
8 }
9
10 render() {
11 return (
12 <Html>
13 <Head>
14 <link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet" />
15 </Head>
16 <body>
17 <Main />
18 <NextScript />
19 </body>
20 </Html>
21 )
22 }
23}
24
25export default MyDocument
26
27