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 contentLayer: true,
13 contentIntellisense: true
14 },
15 image: {
16 service: sharpImageService()
17 },
18 integrations: [UnoCSS({
19 injectReset: true
20 }), sitemap(), mdx()],
21 markdown: {
22 syntaxHighlight: "shiki",
23 shikiConfig: {
24 theme: "solarized-light",
25 wrap: true,
26 transformers: [{
27 preprocess(code) {
28 if (code.endsWith("\n")) {
29 code = code.slice(0, -1);
30 }
31 return code;
32 }
33 }]
34 }
35 },
36 output: "server",
37 adapter: cloudflare()
38});