mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
75831c08e8
### What
Adds support for Pinterest's Rich Pin Data meta tag, while
future-proofing for additional Pinterest tags.
This currently works like so
```js
pinterest: {
richPin: true
}
```
And would resolve to:
```html
<meta property="pinterest-rich-pin" content="true" />
```
x-ref: https://help.pinterest.com/en/business/article/rich-pins
Closes #70873
---------
Co-authored-by: Dominik Koch <dominik@koch-bautechnik.de>
17 lines
274 B
TypeScript
17 lines
274 B
TypeScript
export default function page() {
|
|
return 'facebook'
|
|
}
|
|
|
|
export async function generateMetadata() {
|
|
const metadata = {
|
|
facebook: {
|
|
appId: '12345678',
|
|
admins: ['120', '122', '124'],
|
|
},
|
|
pinterest: {
|
|
richPin: true,
|
|
},
|
|
}
|
|
return metadata
|
|
}
|