Files
outline/server/utils/robots.ts
Tom Moor 075555a867 fix: Do not show actively disabled auth providers in self-hosted install (#4794)
* fix: Do not show actively disabled auth providers in self-hosted installation

* self review

* Refactor for easier mocking
2023-01-28 10:02:25 -08:00

16 lines
186 B
TypeScript

import env from "@server/env";
export const robotsResponse = () => {
if (env.isCloudHosted()) {
return `
User-agent: *
Allow: /
`;
}
return `
User-agent: *
Disallow: /
`;
};