Skip to content

Commit 14ed997

Browse files
authored
docs: nuxt config groups need to be inside of robots object 🤖 (#220)
1 parent 148d09b commit 14ed997

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

docs/content/2.guides/3.nuxt-config.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,17 @@ When targeting specific robots, you can use the `groups` option to provide granu
4242
```ts [nuxt.config.ts]
4343
export default defineNuxtConfig({
4444
// add more granular rules
45-
groups: [
46-
// block specific robots from specific pages
47-
{
48-
userAgent: ['AdsBot-Google-Mobile', 'AdsBot-Google-Mobile-Apps'],
49-
disallow: ['/admin'],
50-
allow: ['/admin/login'],
51-
comments: 'Allow Google AdsBot to index the login page but no-admin pages'
52-
},
53-
]
45+
robots: {
46+
groups: [
47+
// block specific robots from specific pages
48+
{
49+
userAgent: ['AdsBot-Google-Mobile', 'AdsBot-Google-Mobile-Apps'],
50+
disallow: ['/admin'],
51+
allow: ['/admin/login'],
52+
comments: 'Allow Google AdsBot to index the login page but no-admin pages'
53+
},
54+
]
55+
}
5456
})
5557
```
5658

0 commit comments

Comments
 (0)