mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
16 lines
455 B
TypeScript
16 lines
455 B
TypeScript
export default function Page() {
|
|
return 'opengraph-article'
|
|
}
|
|
|
|
export async function generateMetadata(_props, parentResolvingMetadata) {
|
|
const parentMetadata = await parentResolvingMetadata
|
|
return {
|
|
openGraph: {
|
|
...parentMetadata.openGraph,
|
|
title: `My custom title | ${parentMetadata.openGraph.title.absolute}`,
|
|
// merging parent images URL instance should work
|
|
images: [...parentMetadata.openGraph.images],
|
|
},
|
|
}
|
|
}
|