1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

30 lines
818 B
JavaScript
Raw Normal View History

2020-10-07 09:41:58 -07:00
import React from 'react';
import Document, { Html, Head, Main, NextScript } from 'next/document';
2020-01-17 02:50:57 -07:00
class MyDocument extends Document {
2020-05-02 16:09:03 -07:00
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
2020-01-17 02:50:57 -07:00
2020-05-02 16:09:03 -07:00
render() {
return (
<Html lang="en">
2020-06-12 18:50:17 -07:00
<Head>
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
<link rel="dns-prefetch" href="//fonts.gstatic.com" />
2020-10-07 09:41:58 -07:00
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="true" />
2020-06-12 18:50:17 -07:00
<link rel="preconnect" href="https://www.google-analytics.com" />
</Head>
2020-05-02 16:09:03 -07:00
<body>
<script src="noflash.js" />
<Main />
<NextScript />
</body>
</Html>
);
}
2020-01-17 02:50:57 -07:00
}
export default MyDocument;