mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-07-03 23:51:26 +00:00
29 lines
668 B
JavaScript
29 lines
668 B
JavaScript
// @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],
|
|
},
|
|
})
|