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
6// https://astro.build/config
7export default defineConfig({
8 site: "https://dane.computer",
9 experimental: {
10 contentLayer: true,
11 contentIntellisense: true,
12 },
13 image: {
14 service: sharpImageService(),
15 },
16 integrations: [
17 UnoCSS({
18 injectReset: true,
19 }),
20 sitemap(),
21 mdx(),
22 ],
23 markdown: {
24 syntaxHighlight: "shiki",
25 shikiConfig: {
26 theme: "solarized-light",
27 wrap: true,
28 transformers: [
29 {
30 preprocess(code) {
31 if (code.endsWith("\n")) {
32 code = code.slice(0, -1);
33 }
34 return code;
35 },
36 },
37 ],
38 },
39 },
40});