forked from bots-garden/ori
| ✨ Introduce new feature(s): ACP web client — Go backend (agent, bridge, httpserver, mockagent) + React SPA (Zed-like agent panel), tests, quality gate PASS | 1 | /// <reference types="vitest/config" /> |
| 2 | import { defineConfig } from "vite"; | |
| 3 | import react from "@vitejs/plugin-react"; | |
| 4 | ||
| 5 | // In development the SPA runs on Vite's dev server while the Go backend runs | |
| 6 | // on :8888; the proxy below forwards the API and WebSocket routes to it. In | |
| 7 | // production the Go binary serves the built SPA itself and no proxy exists. | |
| 8 | export default defineConfig({ | |
| 9 | plugins: [react()], | |
| 10 | server: { | |
| 11 | proxy: { | |
| 12 | "/ws": { target: "ws://localhost:8888", ws: true }, | |
| ✨ Workspace panel, selectors, previews, desktop app, sandbox template, resizable file tree, light/dark theme | 13 | "/api": { target: "http://localhost:8888" }, |
| ✨ Introduce new feature(s): ACP web client — Go backend (agent, bridge, httpserver, mockagent) + React SPA (Zed-like agent panel), tests, quality gate PASS | 14 | "/healthz": { target: "http://localhost:8888" }, |
| 15 | }, | |
| 16 | }, | |
| 17 | test: { | |
| 18 | environment: "jsdom", | |
| 19 | globals: true, | |
| 20 | }, | |
| 21 | }); |