Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions site/scripts/validate-production.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ assert.equal(robots.status, 200);
const robotsText = await robots.text();
assert.match(robotsText, /User-agent: \*/);
assert.match(robotsText, /Allow: \//);
assert.match(
robotsText,
/Content-Signal: search=yes, ai-input=yes, ai-train=yes/,
);
assert.doesNotMatch(robotsText, /Disallow:/);

for (const userAgent of [
"OAI-SearchBot",
Expand Down
3 changes: 1 addition & 2 deletions site/src/pages/robots.txt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ export const prerender = true;
export function GET() {
return new Response(
[
"# ThimbleDB permits search indexing, real-time AI input, and model training.",
"# ThimbleDB permits crawling and search indexing.",
"User-agent: *",
"Allow: /",
"Content-Signal: search=yes, ai-input=yes, ai-train=yes",
`Sitemap: ${site.url}/sitemap-index.xml`,
"",
].join("\n"),
Expand Down
4 changes: 1 addition & 3 deletions site/tests/site.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ test("AI discovery routes publish explicit access and decision content", async (
const robotsText = await robots.text();
expect(robotsText).toContain("User-agent: *");
expect(robotsText).toContain("Allow: /");
expect(robotsText).toContain(
"Content-Signal: search=yes, ai-input=yes, ai-train=yes",
);
expect(robotsText).not.toContain("Disallow:");

const llms = await request.get("/llms.txt");
expect(llms.ok()).toBe(true);
Expand Down
Loading