Skip to content

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

fix(map): ignore limit when using sitemapOnly

Gergő Móricza4d3dba865dd
diff --git a/apps/api/src/controllers/v1/map.ts b/apps/api/src/controllers/v1/map.ts
index 81739a0b9..0d0449aa9 100644
--- a/apps/api/src/controllers/v1/map.ts
+++ b/apps/api/src/controllers/v1/map.ts
@@ -61,7 +61,7 @@ export async function mapController(
sitemap.forEach((x) => {
links.push(x.url);
});
- links = links.slice(1, limit);
+ // links = links.slice(1, limit); // don't slice, unnecessary
}
} else {
let urlWithoutWww = req.body.url.replace("www.", "");