Files
centdix f21140f7cd feat: add run.sh, agent name in sidebar, and vite preview proxy
- run.sh builds frontend then serves in production mode
- Persist AGENT in .env.local and show it in worktree list
- Add preview proxy config so production mode routes API/WS correctly

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 20:34:02 +00:00

28 lines
557 B
TypeScript

import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
plugins: [svelte(), tailwindcss()],
server: {
port: 5112,
proxy: {
"/api": "http://localhost:5111",
"/ws": {
target: "ws://localhost:5111",
ws: true,
},
},
},
preview: {
port: 4173,
proxy: {
"/api": "http://localhost:5111",
"/ws": {
target: "ws://localhost:5111",
ws: true,
},
},
},
});