Files
HeXi/hexi/plugins/nonebot_plugin_learning_chat/web/learning-chat-admin/vite.config.ts
T
sansenhoshiandClaude b61d09f09f Add HeXi bot codebase: custom plugins, web frontends, tests
- hexi core: message handling, rate limiting, cooldown, plugin manager
- Custom plugins: BF stats, daily check-in, quotes, persona cards, etc.
- Community plugins vendored under hexi/plugins with local fixes
- Web admin frontends (learning-chat, persona-admin), unified hexi/web
- Tests for rate_limit/cooldown/memes/persona; poetry.lock

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-01 13:13:40 +08:00

26 lines
661 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'node:path'
export default defineConfig({
plugins: [vue()],
// 构建产物由 bot 在 /learning_chat 路径下提供
base: '/learning_chat/',
resolve: {
alias: {
'@': path.resolve(process.cwd(), 'src'),
},
},
server: {
port: 5173,
open: false,
host: '0.0.0.0',
// 开发模式下 API 请求转发到 bot 端口
proxy: {
'/learning_chat/api': {
target: 'http://localhost:39697',
changeOrigin: true,
},
},
},
})