1 2 3 4 5 6 7 8 9 10 11 12 13 14
import { MetadataRoute } from 'next' export default function robots(): MetadataRoute.Robots { return { rules: { userAgent: '*', allow: '/', disallow: '/groups/', }, sitemap: process.env.VERCEL_URL ? `${process.env.VERCEL_URL}/sitemap.xml` : undefined, } }