Skip to content

Commit

Permalink
chore(website): add robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
HasithDeAlwis committed Feb 13, 2025
1 parent 6ed4d32 commit 7173bc4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/website/app/routes/[robots.txt].tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export function loader() {
const robotText = `
User-agent: Googlebot
Disallow: /nogooglebot/
User-agent: *
Allow: /
Sitemap: https://cuhacking.ca/sitemap.xml
`
return new Response(robotText, {
status: 200,
headers: {
'Content-Type': 'text/plain',
},
})
}

0 comments on commit 7173bc4

Please sign in to comment.