* chore: Centralize env parsing, defaults, deprecation * wip * test * test * tsc * docs, more validation * fix: Allow empty REDIS_URL (defaults to localhost) * test * fix: SLACK_MESSAGE_ACTIONS not bool * fix: Add SMTP port validation
13 lines
217 B
TypeScript
13 lines
217 B
TypeScript
import env from "@server/env";
|
|
|
|
const DISALLOW_ROBOTS = `User-agent: *
|
|
Disallow: /`;
|
|
|
|
export const robotsResponse = () => {
|
|
if (env.DEPLOYMENT !== "hosted") {
|
|
return DISALLOW_ROBOTS;
|
|
}
|
|
|
|
return undefined;
|
|
};
|