Closed kwiat1990 closed 4 months ago
robots: [
{
UserAgent: 'Googlebot',
Disallow: [
'/nogooglebot/'
]
},
{
UserAgent: '*',
Allow: '/',
},
]
@abyshake-anand the output on the robot.txt
is the same and contains only the last object:
User-agent: *
Disallow:
Can you share your complete config that relates to robots? This is the output I get when I use the following config.
modules: [
// ....
'@nuxtjs/robots',
// ....
],
robots: [
{
UserAgent: 'Googlebot',
Disallow: ['/user', '/admin'],
},
{
UserAgent: '*',
Disallow: '/admin',
},
],
I have tried with the very same config but got the output you can see in my previous message. I’ve also restarted dev server and even change user agent in Chrome to googlebot but it didn’t make any difference at all.
Sorry for messing the PR history.
Hey, I have multiple options for different bots, which look like this:
I wonder how I could mirror this file with the robots plugin? I have tried using an array for the
rules
but it returns only the last entry: