From 1f801d9de63cedb80774448227f507f786a4a5a2 Mon Sep 17 00:00:00 2001 From: Caner Akdas Date: Tue, 14 Apr 2026 15:48:13 +0100 Subject: [PATCH] chore: sitemap paths added into the robots.txt --- apps/site/app/robots.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/site/app/robots.ts b/apps/site/app/robots.ts index 10944eee34726..b8143d2d9bb32 100644 --- a/apps/site/app/robots.ts +++ b/apps/site/app/robots.ts @@ -1,3 +1,5 @@ +import { BASE_URL } from '#site/next.constants.mjs'; + import type { MetadataRoute } from 'next'; // This allows us to generate a `robots.txt` file dynamically based on the needs of the Node.js Website @@ -10,6 +12,7 @@ const robots = (): MetadataRoute.Robots => ({ allow: ['/dist/latest/', '/dist/latest/docs/api/', '/api/'], }, ], + sitemap: [`${BASE_URL}/sitemap.xml`, `${BASE_URL}/learn/sitemap.xml`], }); export default robots;