chore: Updated font preloading 82a6d1a4
Steve · 2025-01-16 22:39 2 file(s) · +55 −40
astro.config.mjs +39 −40
9 9
10 10
// https://astro.build/config
11 11
export default defineConfig({
12 -
	site: "https://stevedylan.dev",
13 -
	outDir: "dist",
14 -
	image: {
15 -
		service: passthroughImageService(),
16 -
	},
17 -
	markdown: {
18 -
		shikiConfig: {
19 -
			theme: "vesper",
20 -
			wrap: false,
21 -
		},
22 -
	},
23 -
	prefetch: true,
24 -
	integrations: [
25 -
		clerk({
26 -
			appearance: {
27 -
				baseTheme: dark,
28 -
				layout: {
29 -
					animations: false,
30 -
				},
31 -
			},
32 -
		}),
33 -
		mdx({}),
34 -
		tailwind({
35 -
			config: {
36 -
				applyBaseStyles: false,
37 -
			},
38 -
		}),
39 -
		sitemap(),
40 -
		react(),
41 -
	],
42 -
	vite: {
43 -
		ssr: {
44 -
			external: ["node:async_hooks"],
45 -
		},
46 -
		define: {
47 -
			"process.env": process.env,
48 -
		},
49 -
	},
50 -
	output: "hybrid",
51 -
	adapter: cloudflare(),
12 +
  site: "https://stevedylan.dev",
13 +
  outDir: "dist",
14 +
  image: {
15 +
    service: passthroughImageService(),
16 +
  },
17 +
  markdown: {
18 +
    shikiConfig: {
19 +
      theme: "vesper",
20 +
      wrap: false,
21 +
    },
22 +
  },
23 +
  prefetch: true,
24 +
  integrations: [
25 +
    clerk({
26 +
      appearance: {
27 +
        baseTheme: dark,
28 +
        layout: {
29 +
          animations: false,
30 +
        },
31 +
      },
32 +
    }),
33 +
    mdx({}),
34 +
    tailwind({
35 +
      config: {
36 +
        applyBaseStyles: false,
37 +
      },
38 +
    }),
39 +
    sitemap(),
40 +
    react(),
41 +
  ],
42 +
  vite: {
43 +
    ssr: {
44 +
      external: ["node:async_hooks"],
45 +
    },
46 +
    define: {
47 +
      "process.env": process.env,
48 +
    },
49 +
  },
50 +
  output: "static",
52 51
});
src/components/BaseHead.astro +16 −0
64 64
65 65
<!-- RSS auto-discovery -->
66 66
<link rel="alternate" type="application/rss+xml" title={siteConfig.title} href="/rss.xml" />
67 +
68 +
<link
69 +
  rel="preload"
70 +
  href="/CommitMono-400-Regular.otf"
71 +
  as="font"
72 +
  type="font/otf"
73 +
  crossorigin
74 +
/>
75 +
76 +
<link
77 +
  rel="preload"
78 +
  href="/CommitMono-700-Regular.otf"
79 +
  as="font"
80 +
  type="font/otf"
81 +
  crossorigin
82 +
/>