MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / buildRobots

Function buildRobots

packages/sitemap/src/robots.ts:34–44  ·  view source on GitHub ↗
(
  redirectDomain: string | null,
  workDir: string
)

Source from the content-addressed store, hash-verified

32}
33
34export async function buildRobots(
35 redirectDomain: string | null,
36 workDir: string
37) {
38 if (redirectDomain) {
39 await fs.writeFile(
40 `${workDir}/sitemap/${redirectDomain}/robots.txt`,
41 createRobotsTxt(redirectDomain)
42 );
43 }
44}

Callers 1

buildFunction · 0.90

Calls 1

createRobotsTxtFunction · 0.85

Tested by

no test coverage detected