robin/vite.config.ts
pyr0ball d6252cf16c fix(webview): pin Vite to port 1420 + manage.sh auto-starts Vite for debug builds
vite.config.ts:
- Set server.port = 1420 with strictPort = true to match tauri.conf.json devUrl
- Add clearScreen = false to keep Vite output readable alongside Rust logs

manage.sh:
- start: auto-detects debug build + absent dev server, launches Vite via nvm
- stop: also kills Vite dev server if running
- This makes ./manage.sh start a single command that handles everything

lib.rs:
- Switch to Builder::build() + App::run(event_handler) form
- Intercept RunEvent::ExitRequested to prevent process exit when
  chat window closes — keeps Robin alive in tray indefinitely
2026-05-20 11:16:40 -07:00

12 lines
355 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
port: 1420,
strictPort: true, // fail loudly if 1420 is taken rather than silently shifting
},
clearScreen: false, // keep terminal output readable alongside cargo/Tauri logs
})