Only the production deployment may be indexed; testing and preview builds answer with noindex and a closed robots file. The homepage now describes the person, the services and the FAQ as structured data, and title, description and the 404 page are written for what people search for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
457 B
TypeScript
18 lines
457 B
TypeScript
import type { MetadataRoute } from "next";
|
|
import { INDEXING, SITE_URL } from "@/src/content/site";
|
|
import { robotsFile } from "@/src/domain/indexing";
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
const { rules, sitemap } = robotsFile(INDEXING, SITE_URL);
|
|
return {
|
|
rules: {
|
|
...rules,
|
|
disallow:
|
|
typeof rules.disallow === "string"
|
|
? rules.disallow
|
|
: [...rules.disallow],
|
|
},
|
|
sitemap,
|
|
};
|
|
}
|