Skip to content

Commit 7a9cc00

Browse files
committed
fix(robots): remove /search from robots.txt
1 parent a83f16a commit 7a9cc00

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tool/build-robots-txt.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ Disallow: /
2424
`;
2525

2626
export async function runBuildRobotsTxt(outfile: string) {
27-
let content = ALWAYS_ALLOW_ROBOTS ? ALLOW_TEXT : DISALLOW_TEXT;
28-
if (ALWAYS_ALLOW_ROBOTS) {
29-
// Append extra lines specifically when we do allow robots.
30-
for (const locale of VALID_LOCALES.values()) {
31-
content += `Disallow: /${locale}/search\n`;
32-
}
33-
}
27+
const content = ALWAYS_ALLOW_ROBOTS ? ALLOW_TEXT : DISALLOW_TEXT;
3428
fs.writeFileSync(outfile, `${content.trim()}\n`, "utf-8");
3529
}

0 commit comments

Comments
 (0)