diff options
| author | Max Nanis | 2026-09-29 11:47:48 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-29 11:47:48 -0700 |
| commit | cd173e67e4e0514271371f4a5e5136f7f61d06d1 (patch) | |
| tree | 03d389b22cc02a4b1dd702eca0db1f13a43c4e3f /jb-ui/vite.config.ts | |
| parent | 08643310a783d4da5212ef419ee8d909f683f8e2 (diff) | |
| download | amt-jb-cd173e67e4e0514271371f4a5e5136f7f61d06d1.tar.gz amt-jb-cd173e67e4e0514271371f4a5e5136f7f61d06d1.zip | |
Redemption Modal. Redemption Magic flow. User Account Icondev
Diffstat (limited to 'jb-ui/vite.config.ts')
| -rw-r--r-- | jb-ui/vite.config.ts | 15 |
1 files changed, 14 insertions, 1 deletions
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; + }, + }, }, }, |
