This commit is contained in:
Tom Moor
2022-05-22 08:58:44 +01:00
parent 6d7f008af0
commit 4a9892c2e1

View File

@@ -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: /
`;
};