Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/site/app/robots.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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;
Expand Down
Loading