practice_code/web/graduation/astro.config.mjs

31 lines
519 B
JavaScript
Raw Normal View History

2025-03-23 01:42:26 +08:00
// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
import react from '@astrojs/react';
2025-03-23 01:42:26 +08:00
// https://astro.build/config
export default defineConfig({
vite: {
plugins: [tailwindcss()]
2025-04-03 21:18:30 +08:00
},
2025-04-03 21:18:30 +08:00
// 服务器配置
server: {
port: 3000,
host: true
},
2025-04-03 21:18:30 +08:00
// Markdown 配置
markdown: {
syntaxHighlight: 'prism',
gfm: true,
shikiConfig: {
theme: 'github-dark',
langs: [],
wrap: true,
}
},
integrations: [react()]
2025-03-23 01:42:26 +08:00
});