Dane's personal website
dane.computer
1import { defineConfig, sharpImageService } from "astro/config";
2import sitemap from "@astrojs/sitemap";
3import UnoCSS from "unocss/astro";
4import mdx from "@astrojs/mdx";
5
6import cloudflare from "@astrojs/cloudflare";
7
8// https://astro.build/config
9export default defineConfig({
10 site: "https://dane.computer",
11 experimental: {
12 contentIntellisense: true,
13 },
14 image: {
15 service: sharpImageService(),
16 },
17 integrations: [
18 UnoCSS({
19 injectReset: true,
20 }),
21 sitemap(),
22 mdx(),
23 ],
24 markdown: {
25 syntaxHighlight: "shiki",
26 shikiConfig: {
27 theme: "solarized-light",
28 wrap: true,
29 transformers: [
30 {
31 preprocess(code) {
32 if (code.endsWith("\n")) {
33 code = code.slice(0, -1);
34 }
35 return code;
36 },
37 },
38 ],
39 },
40 },
41 output: "server",
42 adapter: cloudflare({
43 imageService: "compile",
44 platformProxy: {
45 enabled: true,
46 },
47 }),
48});