Skip to content

Commit 83cfcaa

Browse files
authored
chore: sitemap paths added into the robots.txt (#8820)
1 parent 6096558 commit 83cfcaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/site/app/robots.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { BASE_URL } from '#site/next.constants.mjs';
2+
13
import type { MetadataRoute } from 'next';
24

35
// 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 => ({
1012
allow: ['/dist/latest/', '/dist/latest/docs/api/', '/api/'],
1113
},
1214
],
15+
sitemap: [`${BASE_URL}/sitemap.xml`, `${BASE_URL}/learn/sitemap.xml`],
1316
});
1417

1518
export default robots;

0 commit comments

Comments
 (0)