templates2.Saas.Next/app/robots.ts
w4c-templates 6538da5797
Some checks are pending
CI / quality (push) Waiting to run
chore(template): publish Saas.Next
2026-10-11 23:24:56 +03:00

10 lines
339 B
TypeScript

import type { MetadataRoute } from 'next';
export default function robots(): MetadataRoute.Robots {
const base = (process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000').replace(/\/$/, '');
return {
rules: { userAgent: '*', allow: '/', disallow: ['/admin', '/dashboard', '/api'] },
sitemap: `${base}/sitemap.xml`,
};
}