diff options
| author | Max Nanis | 2026-09-29 18:53:10 +0000 |
|---|---|---|
| committer | Max Nanis | 2026-09-29 18:53:10 +0000 |
| commit | 3e7eb6ca784bc062bd1c7129e40b8705543d8469 (patch) | |
| tree | 30bc2883ab3397f290fb494fd38b96d47ac701b9 /jb-ui/vite.config.ts | |
| parent | d43e82fd2c799410b15706d10dbbcaa838325a4d (diff) | |
| parent | cd173e67e4e0514271371f4a5e5136f7f61d06d1 (diff) | |
| download | amt-jb-3e7eb6ca784bc062bd1c7129e40b8705543d8469.tar.gz amt-jb-3e7eb6ca784bc062bd1c7129e40b8705543d8469.zip | |
Merges pull request #6
Redemption Modal. Redemption Magic flow. User Account Icon
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; + }, + }, }, }, |
