Skip to content

Commit

Permalink
feat: added disavow option (#106)
Browse files Browse the repository at this point in the history
Co-authored-by: Fermín Hernández <fermin.hernandez@iahorro.com>
  • Loading branch information
nosfi831 and Fermín Hernández authored Oct 3, 2023
1 parent 31fc74f commit 9bced60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ Sitemap: https://robots.nuxtjs.org/sitemap.xml
- UserAgent = `User-agent`
- CrawlDelay = `Crawl-delay`
- Disallow = `Disallow`
- Disavow = `Disavow`
- Allow = `Allow`
- Host = `Host`
- Sitemap = `Sitemap`
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/server/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ enum Correspondence {
'User-agent',
'Crawl-delay',
'Disallow',
'Disavow',
'Allow',
'Host',
'Sitemap',
Expand Down Expand Up @@ -44,6 +45,7 @@ async function getRules (options: Rule | Rule[], req: NodeIncomingMessage) {
useragent: 'User-agent',
crawldelay: 'Crawl-delay',
disallow: 'Disallow',
disavow: 'Disavow',
allow: 'Allow',
host: 'Host',
sitemap: 'Sitemap',
Expand Down

0 comments on commit 9bced60

Please sign in to comment.