2021-11-09 16:43:56 -06:00
|
|
|
import Document, { Html, Head, Main, NextScript } from 'next/document'
|
2021-11-04 14:22:03 -04:00
|
|
|
|
2022-02-23 21:02:23 -06:00
|
|
|
const publicPrefix = process.env.NODE_ENV === 'development' ? '' : 'https://a.stacker.news'
|
2021-11-09 16:43:56 -06:00
|
|
|
class MyDocument extends Document {
|
|
|
|
render () {
|
|
|
|
return (
|
|
|
|
<Html>
|
2022-02-05 11:29:41 -06:00
|
|
|
<Head>
|
2022-04-14 12:05:44 -05:00
|
|
|
<link rel='apple-touch-icon' sizes='180x180' href='/apple-touch-icon.png' />
|
|
|
|
<link rel='manifest' href='/site.webmanifest' />
|
2022-02-23 21:02:23 -06:00
|
|
|
<link rel='preload' href={`${publicPrefix}/Lightningvolt-xoqm.ttf`} as='font' type='font/ttf' crossOrigin='' />
|
|
|
|
<style
|
|
|
|
dangerouslySetInnerHTML={{
|
|
|
|
__html:
|
|
|
|
` @font-face {
|
2023-06-01 19:34:26 -05:00
|
|
|
font-family: 'lightning';
|
2022-02-23 21:02:23 -06:00
|
|
|
src: url(${publicPrefix}/Lightningvolt-xoqm.ttf);
|
2022-04-15 11:23:37 -05:00
|
|
|
font-display: swap;
|
2022-02-23 21:02:23 -06:00
|
|
|
}`
|
|
|
|
}}
|
|
|
|
/>
|
2022-02-05 11:29:41 -06:00
|
|
|
</Head>
|
2021-11-09 16:43:56 -06:00
|
|
|
<body>
|
2022-04-15 10:59:39 -05:00
|
|
|
<script src={`${publicPrefix}/darkmode.js`} />
|
2021-11-09 16:43:56 -06:00
|
|
|
<Main />
|
|
|
|
<NextScript />
|
|
|
|
</body>
|
|
|
|
</Html>
|
|
|
|
)
|
2021-11-04 14:22:03 -04:00
|
|
|
}
|
|
|
|
}
|
2021-11-09 16:43:56 -06:00
|
|
|
|
|
|
|
export default MyDocument
|