MCPcopy
hub / github.com/dubinc/dub / robots

Function robots

apps/web/app/robots.ts:4–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { headers } from "next/headers";
3
4export default async function robots(): Promise<MetadataRoute.Robots> {
5 const headersList = await headers();
6 let domain = headersList.get("host") as string;
7
8 return {
9 rules: [
10 {
11 userAgent: "*",
12 allow: "/",
13 },
14 ],
15 sitemap: `https://${domain}/sitemap.xml`,
16 };
17}

Callers

nothing calls this directly

Calls 2

headersFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…