30 lines
864 B
TypeScript
30 lines
864 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" />
|
|
<link
|
|
href={`https://fonts.googleapis.com/css2?family=${
|
|
siteConfig.googleFont
|
|
}:wght@${siteConfig.googleFontWeights.join(';')}&display=swap`}
|
|
rel="stylesheet"
|
|
/>
|
|
</Head>
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default MyDocument
|