Skip to content

Commit

Permalink
Since we are only worried about appwrite.io, we don't need the split
Browse files Browse the repository at this point in the history
  • Loading branch information
wess authored and TorstenDittmann committed Jan 24, 2024
1 parent 0c286aa commit c61ac16
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/routes/robots.txt/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ User-agent: *
Disallow: /`;

export const GET:RequestHandler = ({url}) => {
const h = url.hostname.split('.')[0];


return new Response(
h === 'appwrite' ? follow : nofollow
url.hostname === 'appwrite.io' ? follow : nofollow
);
}

0 comments on commit c61ac16

Please sign in to comment.