mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Filter out the invalid images in metadata og/twitter `images` filter to avoid crash when falsy image slides in. Add filtering for now as the erroring doesn't show the proper trace pointing to where it's original introduced, might introduce other validation in the future.
10 lines
147 B
TypeScript
10 lines
147 B
TypeScript
export default function Page() {
|
|
return 'opengraph-article'
|
|
}
|
|
|
|
export const metadata = {
|
|
openGraph: {
|
|
images: [{ url: undefined }],
|
|
},
|
|
}
|