Skip to content

Commit

Permalink
feat(seo): add robots.txt generator
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Jul 4, 2023
1 parent a360a2c commit 6652a6c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { MetadataRoute } from 'next'
import { host } from '@/shared/lib/webserver-constants'

export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/'
},
sitemap: `${host}/sitemap.xml`
}
}

0 comments on commit 6652a6c

Please sign in to comment.