We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6096558 commit 83cfcaaCopy full SHA for 83cfcaa
apps/site/app/robots.ts
@@ -1,3 +1,5 @@
1
+import { BASE_URL } from '#site/next.constants.mjs';
2
+
3
import type { MetadataRoute } from 'next';
4
5
// 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 => ({
10
12
allow: ['/dist/latest/', '/dist/latest/docs/api/', '/api/'],
11
13
},
14
],
15
+ sitemap: [`${BASE_URL}/sitemap.xml`, `${BASE_URL}/learn/sitemap.xml`],
16
});
17
18
export default robots;
0 commit comments