2026-03-24 14:19:09 +00:00
|
|
|
// @ts-check
|
|
|
|
|
import { defineConfig } from 'astro/config';
|
2026-03-25 15:26:22 +00:00
|
|
|
import sitemap from "@astrojs/sitemap";
|
2026-04-04 09:48:25 +00:00
|
|
|
import svelte from "@astrojs/svelte";
|
2026-04-13 17:59:08 +00:00
|
|
|
import rehypeMermaid from "rehype-mermaid";
|
2026-03-24 14:19:09 +00:00
|
|
|
// https://astro.build/config
|
2026-03-24 17:33:01 +00:00
|
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
vite: {
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-03-25 07:25:40 +00:00
|
|
|
site: "https://blog.cloverta.top",
|
|
|
|
|
redirects: {
|
|
|
|
|
"/": "/zh",
|
|
|
|
|
},
|
2026-04-04 09:48:25 +00:00
|
|
|
integrations: [sitemap(), svelte()],
|
2026-04-13 17:59:08 +00:00
|
|
|
markdown: {
|
2026-04-14 10:30:40 +00:00
|
|
|
syntaxHighlight: {
|
|
|
|
|
type: 'shiki',
|
|
|
|
|
excludeLangs: ['mermaid', 'math'],
|
|
|
|
|
},
|
2026-04-13 17:59:08 +00:00
|
|
|
rehypePlugins: [rehypeMermaid],
|
|
|
|
|
},
|
2026-03-24 17:33:01 +00:00
|
|
|
})
|