onedrive/pages/_document.tsx

26 lines
760 B
TypeScript

import Document, { Head, Html, Main, NextScript } from 'next/document'
import siteConfig from '../config/site.config'
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