mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## Feature - [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [x] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
28 lines
550 B
TypeScript
28 lines
550 B
TypeScript
export default function Page() {
|
|
return 'opengraph'
|
|
}
|
|
|
|
export const metadata = {
|
|
openGraph: {
|
|
title: 'My custom title',
|
|
description: 'My custom description',
|
|
url: 'https://example.com',
|
|
siteName: 'My custom site name',
|
|
images: [
|
|
{
|
|
url: 'https://example.com/image.png',
|
|
width: 800,
|
|
height: 600,
|
|
},
|
|
{
|
|
url: 'https://example.com/image2.png',
|
|
width: 1800,
|
|
height: 1600,
|
|
alt: 'My custom alt',
|
|
},
|
|
],
|
|
locale: 'en-US',
|
|
type: 'website',
|
|
},
|
|
}
|