Skip to content

Commit c8e9872

Browse files
committed
Fix agent endpoint in the frontend
1 parent b62cd4a commit c8e9872

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

client/vite.config.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ export default defineConfig({
2020
target: "http://localhost:3000",
2121
changeOrigin: true,
2222
},
23-
// // optional, if you have other endpoints like /api
24-
// "/api": {
25-
// target: "http://localhost:3000",
26-
// changeOrigin: true,
27-
// },
23+
// optional, if you have other endpoints like /api
24+
"/api": {
25+
target: "http://localhost:3000",
26+
changeOrigin: true,
27+
},
28+
"/agent": {
29+
target: "http://localhost:3000",
30+
changeOrigin: true,
31+
},
2832
},
2933
},
3034
});

0 commit comments

Comments
 (0)