nuxt-modules / robots

Tame the robots crawling and indexing your Nuxt site.
https://nuxtseo.com/robots
412 stars 30 forks source link

{ Disallow: '/' } transforms to `Disallow: ` instead of 'Disallow: /' #57

Closed fliptheweb closed 2 years ago

fliptheweb commented 2 years ago

My config:

modules: [
  ['@nuxtjs/robots', {
    UserAgent: '*', 
    Disallow: '/' 
  }],
]

Result:

User-agent: *
Disallow: 

But that means that all pages are allowed to index due to robots.txt tester🤷‍♂️ Yeah, you can do a workaround by Disallow: '/*' but that isn't expected behavior.

fliptheweb commented 2 years ago

Sorry, was a problem in configuration, closed