diff --git a/frontend/apps/docs/app/docs/sitemap.ts b/frontend/apps/docs/app/docs/sitemap.ts new file mode 100644 index 000000000..7f3c5c64d --- /dev/null +++ b/frontend/apps/docs/app/docs/sitemap.ts @@ -0,0 +1,12 @@ +import { source } from '@/lib/source' +import type { MetadataRoute } from 'next' + +export default function sitemap(): MetadataRoute.Sitemap { + const pages = source.getPages() + const allPaths = pages.map((page) => page.url) + + return allPaths.map((path) => ({ + url: `${process.env.SERVICE_SITE_URL}${path}`, + lastModified: new Date().toISOString(), + })) +} diff --git a/frontend/apps/docs/public/robots.txt b/frontend/apps/docs/public/robots.txt new file mode 100644 index 000000000..c6742d8a8 --- /dev/null +++ b/frontend/apps/docs/public/robots.txt @@ -0,0 +1,2 @@ +User-Agent: * +Disallow: /