feat(desktop): start API and Vite dev servers with proxies

- Start API server on port 3001 and Vite dev server on port 5173 in the desktop dev flow
- Proxy /auth, /health, and /api to the local API server for development
- Gracefully handle startup/shutdown and report failures clearly
This commit is contained in:
Bohdan Triapitsyn
2026-02-06 16:18:16 +02:00
parent de4bd4696d
commit 6d84829761
3 changed files with 80 additions and 12 deletions
+8
View File
@@ -56,6 +56,14 @@ export default defineConfig({
server: {
port: 5173,
proxy: {
'/auth': {
target: `http://127.0.0.1:${process.env.OPENCHAMBER_PORT || 3001}`,
changeOrigin: true,
},
'/health': {
target: `http://127.0.0.1:${process.env.OPENCHAMBER_PORT || 3001}`,
changeOrigin: true,
},
'/api': {
target: `http://127.0.0.1:${process.env.OPENCHAMBER_PORT || 3001}`,
changeOrigin: true,