mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-05-03 18:21:20 +00:00
feat: Generate robots.txt
This commit is contained in:
parent
c6bb0aa335
commit
59e9e608a5
1 changed files with 14 additions and 0 deletions
14
app/robots.ts
Normal file
14
app/robots.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
import { MetadataRoute } from 'next'
|
||||
import { metadata } from './layout'
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
return {
|
||||
rules: {
|
||||
userAgent: '*',
|
||||
allow: '/',
|
||||
disallow: '/private/',
|
||||
},
|
||||
sitemap: `${metadata.metadataBase}sitemap.xml`,
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue