aboutsummaryrefslogtreecommitdiff
path: root/jb-ui/vite.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'jb-ui/vite.config.ts')
-rw-r--r--jb-ui/vite.config.ts15
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;
+ },
+ },
},
},