Add opengraph version to image
This commit is contained in:
parent
d5132e9e25
commit
cc90b6f593
|
@ -94,4 +94,5 @@ export const convertImageToEndpointImage = ({
|
||||||
],
|
],
|
||||||
[200, 320, 480, 800, 1280, 1920, 2560]
|
[200, 320, 480, 800, 1280, 1920, 2560]
|
||||||
),
|
),
|
||||||
|
...(isPayloadImage(sizes?.og) ? { openGraph: sizes.og } : {}),
|
||||||
});
|
});
|
||||||
|
|
|
@ -415,6 +415,7 @@ export type EndpointImage = EndpointMedia & {
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
sizes: PayloadImage[];
|
sizes: PayloadImage[];
|
||||||
|
openGraph?: PayloadImage;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EndpointAudio = EndpointMedia & {
|
export type EndpointAudio = EndpointMedia & {
|
||||||
|
@ -445,6 +446,7 @@ export type EndpointVideo = EndpointMedia & {
|
||||||
|
|
||||||
export type EndpointMediaThumbnail = PayloadImage & {
|
export type EndpointMediaThumbnail = PayloadImage & {
|
||||||
sizes: PayloadImage[];
|
sizes: PayloadImage[];
|
||||||
|
openGraph?: PayloadImage;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type PayloadMedia = {
|
export type PayloadMedia = {
|
||||||
|
|
|
@ -362,4 +362,5 @@ export const convertMediaThumbnailToEndpointMediaThumbnail = ({
|
||||||
],
|
],
|
||||||
[200, 320, 480, 800, 1280, 1920, 2560]
|
[200, 320, 480, 800, 1280, 1920, 2560]
|
||||||
),
|
),
|
||||||
|
...(isPayloadImage(sizes?.og) ? { openGraph: sizes.og } : {}),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue