File tree Expand file tree Collapse file tree
pwa/app/(con)/[locale]/con/[edition]/speakers/[slug] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { getConferencesBySpeaker } from "api/con/conferences";
77import SpeakerPage from "./SpeakerPage" ;
88import { Locale , i18n } from "i18n/i18n-config" ;
99import { Metadata } from "next" ;
10+ import { getRootUrl } from "utils" ;
1011
1112async function getSpeaker ( slug : string , edition : string , locale : string ) {
1213 const speaker = await getSpeakerData ( slug , edition , locale ) ;
@@ -43,6 +44,14 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
4344 openGraph : {
4445 title : `${ speaker . name } - API Platform Conference` ,
4546 description : DESCRIPTION ,
47+ images : [
48+ {
49+ url : `${ getRootUrl ( ) } /images/con/og-${ edition } .png` ,
50+ width : 1200 ,
51+ height : 630 ,
52+ alt : `API Platform Conference ${ edition } ` ,
53+ } ,
54+ ] ,
4655 } ,
4756 twitter : {
4857 title : `${ speaker . name } - API Platform Conference` ,
You can’t perform that action at this time.
0 commit comments