* fix: Do not show actively disabled auth providers in self-hosted installation * self review * Refactor for easier mocking
16 lines
186 B
TypeScript
16 lines
186 B
TypeScript
import env from "@server/env";
|
|
|
|
export const robotsResponse = () => {
|
|
if (env.isCloudHosted()) {
|
|
return `
|
|
User-agent: *
|
|
Allow: /
|
|
`;
|
|
}
|
|
|
|
return `
|
|
User-agent: *
|
|
Disallow: /
|
|
`;
|
|
};
|