tasko-frontend/pages/_document.js

25 lines
569 B
JavaScript
Raw Normal View History

2020-01-13 16:20:19 +01:00
import Document, { Html, Head, Main, NextScript } from 'next/document'
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx)
return { ...initialProps }
}
render() {
return (
<Html>
2020-01-19 20:09:02 +01:00
<Head>
<link href="https://fonts.googleapis.com/css?family=Oswald:400,700&display=swap&subset=latin-ext" rel="stylesheet" />
</Head>
2020-01-13 16:20:19 +01:00
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
}
export default MyDocument