Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(api):

mogeryd62cb5a08b46
diff --git a/apps/api/src/controllers/v2/research-proxy.ts b/apps/api/src/controllers/v2/research-proxy.ts
index 21f5e4144..1df989701 100644
--- a/apps/api/src/controllers/v2/research-proxy.ts
+++ b/apps/api/src/controllers/v2/research-proxy.ts
@@ -36,8 +36,8 @@ export async function researchProxyController(
return;
}
- const subPath = req.path.replace(/^\/research/, "") || "/";
- const url = new URL(base.replace(/\/+$/, "") + subPath);
+ const fullPath = req.baseUrl + req.path || "/";
+ const url = new URL(base.replace(/\/+$/, "") + fullPath);
for (const [k, v] of Object.entries(req.query)) {
if (Array.isArray(v)) {
v.forEach(vv => url.searchParams.append(k, String(vv)));