We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a83f16a commit 7a9cc00Copy full SHA for 7a9cc00
tool/build-robots-txt.ts
@@ -24,12 +24,6 @@ Disallow: /
24
`;
25
26
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
+ const content = ALWAYS_ALLOW_ROBOTS ? ALLOW_TEXT : DISALLOW_TEXT;
34
fs.writeFileSync(outfile, `${content.trim()}\n`, "utf-8");
35
}
0 commit comments