fix(frontend): proxy /api routes in Vite dev server

Signed-off-by: chencc02 <chencc02@mingyuanyun.com>
This commit is contained in:
chencc02 committed 2026-09-01 14:49:53 +08:00
1 parent 002373ef32
commit 4b265b6bba
1 file changed
+1
+1
View File
@@ -3,6 +3,7 @@ import react from "@vitejs/plugin-react";
import path from "path"; import path from "path";
const PROXY_PATHS = [ const PROXY_PATHS = [
"/api",
"/auth", "/auth",
"/sessions", "/sessions",
"/swarm/presets", "/swarm/presets",