feat(v3): Web 应用化基线(异步任务/SSE/llama-server 管理/Vue SPA 四页 + 设置页整页滚动修复)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { defineConfig } from 'vite'
|
||||
import { resolve } from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
base: '/static/',
|
||||
resolve: {
|
||||
alias: { '@': resolve(__dirname, 'src') },
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
// 开发时:前端同源请求(无 /api 前缀)代理到 FastAPI
|
||||
'/chat': { target: 'http://localhost:8000', changeOrigin: true },
|
||||
'/runs': { target: 'http://localhost:8000', changeOrigin: true },
|
||||
'/review': { target: 'http://localhost:8000', changeOrigin: true },
|
||||
'/api/metrics':{ target: 'http://localhost:8000', changeOrigin: true },
|
||||
'/config': { target: 'http://localhost:8000', changeOrigin: true },
|
||||
'/health': { target: 'http://localhost:8000', changeOrigin: true },
|
||||
'/traces':{ target: 'http://localhost:8000', changeOrigin: true },
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: '../gateway/static',
|
||||
emptyOutDir: true,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user