fix(map): remove robots.txt

This commit is contained in:
Gergő Móricz 2024-08-16 23:46:10 +02:00
parent 803577eeba
commit 4c1b74dab3

View File

@ -28,12 +28,6 @@ export async function mapController(req: RequestWithAuth<{}, MapResponse, MapReq
const crawler = crawlToCrawler(id, sc);
try {
sc.robots = await crawler.getRobotsTxt();
} catch (e) {
Logger.debug(`[Crawl] Failed to get robots.txt (this is probably fine!): ${JSON.stringify(e)}`);
}
const sitemap = sc.crawlerOptions.ignoreSitemap ? null : await crawler.tryGetSitemap();
if (sitemap !== null) {