diff --git a/server/utils/robots.ts b/server/utils/robots.ts index 702639d1c..41699ec70 100644 --- a/server/utils/robots.ts +++ b/server/utils/robots.ts @@ -1,12 +1,15 @@ import env from "@server/env"; -const DISALLOW_ROBOTS = `User-agent: * -Disallow: /`; - export const robotsResponse = () => { - if (env.DEPLOYMENT !== "hosted") { - return DISALLOW_ROBOTS; + if (env.DEPLOYMENT === "hosted") { + return ` +User-agent: * +Allow: / +`; } - return undefined; + return ` +User-agent: * +Disallow: / +`; };