fix(frontend): proxy /api routes in Vite dev server
Signed-off-by: chencc02 <chencc02@mingyuanyun.com>
This commit is contained in:
1 parent
002373ef32
commit
4b265b6bba
1 file changed
+1
@@ -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",
|
||||||
|
|||||||
Reference in new issue
Block a user