You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add types type: 'product' to openGraph in Metadata (import { Metadata } from 'next';)
Non-Goals
Background
it not exists
better seo for websites
Proposal
add types to next types
(for example)
typeOpenGraphProduct=OpenGraphMetadata&{type: 'product';price?: {amount: number;currency: string;};availability?: 'instock'|'outofstock'|'preorder'|'backorder'|'discontinued';brand?: string;category?: string;weight?: string;dimensions?: {width?: string|number;height?: string|number;depth?: string|number;};isbn?: string;// Optional, if it's a book productsku?: string;mpn?: string;// Manufacturer Part Numbergtin8?: string;// Global Trade Item Number (8-digit version)gtin13?: string;// Global Trade Item Number (usually 13-digit version, commonly known as EAN-13)gtin14?: string;// Global Trade Item Number (14-digit version)color?: string;material?: string;// Any other specific fields for a product can be added here};
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Goals
type: 'product'
toopenGraph
in Metadata (import { Metadata } from 'next';
)Non-Goals
Background
Proposal
add types to next types
(for example)
Beta Was this translation helpful? Give feedback.
All reactions