Files
Tom MoorandClaude Fable 5 a1d0520c9f Add missing JSDoc to exported members in app and server utils (#12940)
* Add missing JSDoc to exported members in app and server utils

Documents all exported functions, classes, enums, and constants in
app/utils and server/utils that were missing JSDoc, per the project
documentation guidelines.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AsEQYA8zN813thxu7GjjzU

* Use @returns tag to match codebase convention

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AsEQYA8zN813thxu7GjjzU

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-08 08:30:11 -04:00

22 lines
377 B
TypeScript

import env from "@server/env";
/**
* Returns the robots.txt content for the installation, allowing crawlers on
* cloud-hosted installations and disallowing them when self-hosted.
*
* @returns the robots.txt content.
*/
export const robotsResponse = () => {
if (env.isCloudHosted) {
return `
User-agent: *
Allow: /
`;
}
return `
User-agent: *
Disallow: /
`;
};