Unverified Commit 9cc6e96e authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

docs: Update `robots` for `generateMetadata` spec (#75229)

Typically you would want things to be indexed, so flipping the defaults
shown.
parent 4f523905
...@@ -566,13 +566,13 @@ import type { Metadata } from 'next' ...@@ -566,13 +566,13 @@ import type { Metadata } from 'next'
export const metadata: Metadata = { export const metadata: Metadata = {
robots: { robots: {
index: false, index: true,
follow: true, follow: true,
nocache: true, nocache: false,
googleBot: { googleBot: {
index: true, index: true,
follow: false, follow: true,
noimageindex: true, noimageindex: false,
'max-video-preview': -1, 'max-video-preview': -1,
'max-image-preview': 'large', 'max-image-preview': 'large',
'max-snippet': -1, 'max-snippet': -1,
...@@ -582,10 +582,10 @@ export const metadata: Metadata = { ...@@ -582,10 +582,10 @@ export const metadata: Metadata = {
``` ```
```html filename="<head> output" hideLineNumbers ```html filename="<head> output" hideLineNumbers
<meta name="robots" content="noindex, follow, nocache" /> <meta name="robots" content="index, follow" />
<meta <meta
name="googlebot" name="googlebot"
content="index, nofollow, noimageindex, max-video-preview:-1, max-image-preview:large, max-snippet:-1" content="index, follow, max-video-preview:-1, max-image-preview:large, max-snippet:-1"
/> />
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment