26 lines
758 B
TypeScript
26 lines
758 B
TypeScript
import Document, { Head, Html, Main, NextScript } from 'next/document'
|
|
import siteConfig from '../config/site.json'
|
|
|
|
class MyDocument extends Document {
|
|
render() {
|
|
return (
|
|
<Html>
|
|
<Head>
|
|
<meta name="description" content="OneDrive Vercel Index" />
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="true" />
|
|
{siteConfig.googleFontLinks.map(link => (
|
|
<link key={link} rel="stylesheet" href={link} />
|
|
))}
|
|
</Head>
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default MyDocument
|