robots
This commit is contained in:
@@ -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: /
|
||||
`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user