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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user