Files
pulsewall/hub/web/vite.config.js
T
jmj c037b43f4a Initial commit: PulseWall hub, Android app, and protocol docs
- 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
2026-11-30 07:37:34 +08:00

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
}
}
}
})