From cd173e67e4e0514271371f4a5e5136f7f61d06d1 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Tue, 29 Sep 2026 11:47:48 -0700 Subject: Redemption Modal. Redemption Magic flow. User Account Icon --- jb-ui/vite.config.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'jb-ui/vite.config.ts') diff --git a/jb-ui/vite.config.ts b/jb-ui/vite.config.ts index 41f1d9e..b8bc20d 100644 --- a/jb-ui/vite.config.ts +++ b/jb-ui/vite.config.ts @@ -28,10 +28,23 @@ export default defineConfig({ // This forwards requests to the FastAPI development server // that must also be running proxy: { - "^/(auth|status|statuses|report|survey)(/|$)": { + "^/(wallet/cashout/request|auth|status|statuses|report|survey)(/|$)": { target: "http://localhost:8000", changeOrigin: true, }, + + // GET -> React, everything else -> FastAPI + "^/wallet/cashout/confirm(/|$)": { + target: "http://localhost:8000", + changeOrigin: true, + bypass(req) { + if (req.method === "GET") { + return "/index.html"; + } + + return undefined; + }, + }, }, }, -- cgit v1.2.3