Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

262 B
Raw Blame
import type { MetadataRoute } from 'next';
import { source } from '@/lib/source';
import { siteUrl } from '@/lib/shared';

export default function sitemap(): MetadataRoute.Sitemap {
  return source.getPages().map((page) => ({ url: `${siteUrl}${page.url}` }));
}