Skip to content

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

Update map.ts

Nicolas3c1b1909f8fb
diff --git a/apps/api/src/controllers/v1/map.ts b/apps/api/src/controllers/v1/map.ts
index 64e0025a3..81739a0b9 100644
--- a/apps/api/src/controllers/v1/map.ts
+++ b/apps/api/src/controllers/v1/map.ts
@@ -61,6 +61,7 @@ export async function mapController(
sitemap.forEach((x) => {
links.push(x.url);
});
+ links = links.slice(1, limit);
}
} else {
let urlWithoutWww = req.body.url.replace("www.", "");