- hub: FastAPI backend (MCP server, ADB LAN controller, bridge, storage) - hub/web: Vue 3 admin console (device manager, screen mirror, chat workbench) - android: Kotlin shell app with WebView stage, OTA, telemetry, keep-alive - protocol: architecture, MCP schema, and WebSocket protocol specs
25 lines
495 B
JavaScript
25 lines
495 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
base: '/admin/',
|
|
plugins: [vue()],
|
|
build: {
|
|
outDir: path.resolve(__dirname, '../app/admin/dist'),
|
|
emptyOutDir: true
|
|
},
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': 'http://127.0.0.1:8765',
|
|
'/mcp': 'http://127.0.0.1:8765',
|
|
'/ws': {
|
|
target: 'ws://127.0.0.1:8765',
|
|
ws: true
|
|
}
|
|
}
|
|
}
|
|
})
|