feat: 删除无用依赖,shiki lang使用懒加载方式加载语言

This commit is contained in:
2026-08-16 13:29:58 +08:00
parent 070a63133d
commit be2e6f1ae0
9 changed files with 54 additions and 1131 deletions

View File

@@ -1,6 +1,5 @@
// @ts-check
import {defineConfig} from 'astro/config';
import solidJs from '@astrojs/solid-js';
import node from '@astrojs/node';
// https://astro.build/config
@@ -10,16 +9,14 @@ export default defineConfig({
server: {
host: "0.0.0.0",
},
integrations: [solidJs()],
adapter: node({
mode: 'standalone'
}),
vite: {
plugins: [],
server: {
watch: {
usePolling: true,
},
},
},
...(process.argv.includes('dev')
? {watch: {usePolling: true}}
: {}),
}
}
});