The apex 301s to www at Cloudflare, but metadataBase, the school-page canonical, robots.txt's Sitemap: line and the sitemap's own <loc> entries all named the apex. Every one of those pointed Google at a redirect. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015mWQnpye9F299NVRCCSRvj
21 lines
400 B
TypeScript
21 lines
400 B
TypeScript
/**
|
|
* Robots.txt Configuration
|
|
* Controls search engine crawling behavior
|
|
*/
|
|
|
|
import { MetadataRoute } from 'next';
|
|
import { absoluteUrl } from '@/lib/site';
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: [
|
|
{
|
|
userAgent: '*',
|
|
allow: '/',
|
|
disallow: ['/api/', '/_next/'],
|
|
},
|
|
],
|
|
sitemap: absoluteUrl('/sitemap.xml'),
|
|
};
|
|
}
|