ebc33a78b7
- server/: Node bridge (datarefs/commands, navdata, CIFP procedures, flight plan) - web/: React cockpit (PFD/MFD/Map, VFR six-pack, AFCS, FMS CDU), PWA, collapsible sidebar - desktop/: Tauri 2 launcher (Bun sidecar, system tray, updater) + Linux build via Docker - scripts/: prep-desktop, build-linux, Gitea release + latest.json Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
463 B
JavaScript
16 lines
463 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
// During `npm run dev`, proxy the bridge WebSocket so you can develop the UI
|
|
// with hot-reload while the bridge runs on :8080.
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: true, // expose dev server on the LAN too
|
|
proxy: {
|
|
'/ws': { target: 'ws://localhost:8080', ws: true },
|
|
'/api': { target: 'http://localhost:8080' },
|
|
},
|
|
},
|
|
});
|