// @ts-check import { defineConfig } from 'astro/config'; import sitemap from "@astrojs/sitemap"; import svelte from "@astrojs/svelte"; import rehypeMermaid from "rehype-mermaid"; // https://astro.build/config import { fileURLToPath } from 'node:url' export default defineConfig({ vite: { resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, }, site: "https://blog.cloverta.top", redirects: { "/": "/zh", }, integrations: [sitemap(), svelte()], markdown: { syntaxHighlight: { type: 'shiki', excludeLangs: ['mermaid', 'math'], }, rehypePlugins: [rehypeMermaid], }, })