mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 18:06:38 -04:00
random organization
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { Html, Head, Main, NextScript } from "next/document";
|
||||
import ThemeScript from "../components/ThemeScript/ThemeScript";
|
||||
import { getCssText, preloadUrls } from "../lib/styles/stitches.config";
|
||||
import { getCssText } from "../lib/styles/stitches.config";
|
||||
import * as config from "../lib/config";
|
||||
|
||||
// https://nextjs.org/docs/advanced-features/custom-document
|
||||
@ -11,18 +11,6 @@ const Document = () => {
|
||||
{/* inject a small script to set/restore the user's theme ASAP */}
|
||||
<ThemeScript />
|
||||
|
||||
{/* preload highest priority fonts defined in ../lib/styles/fonts/ */}
|
||||
{preloadUrls.map((relativeUrl, index) => (
|
||||
<link
|
||||
key={`font-${index}`}
|
||||
rel="preload"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
href={relativeUrl}
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
))}
|
||||
|
||||
{/* stitches SSR: https://stitches.dev/blog/using-nextjs-with-stitches#step-3-ssr */}
|
||||
<style id="stitches" dangerouslySetInnerHTML={{ __html: getCssText() }} />
|
||||
</Head>
|
||||
|
Reference in New Issue
Block a user