Skip to content
HomePagesHomePages template kit

LinkVideoRef

A link-sourced video's fixture value.

A link-sourced video’s fixture value. Unlike a hosted ref its url is load-bearing: it is the FINISHED provider embed src, exactly what a resolved link value carries — the embed rewrite happens at resolve time in production, so a fixture states the post-rewrite form. video_id is empty because a link’s upload row has no dev pack asset behind it. What the pack CAN supply is the poster: in production a link’s poster is the provider thumbnail, downloaded as an ordinary derived image, so a fixture link names a pack image asset for it — the same way a pooled tour does — and it resolves through the path a photo takes. Absent, the link renders poster-less.

Import from @homepages/template-kit/fixtures.

export type LinkVideoRef = {
video_id: "";
url: string;
source: "link";
provider?: string;
poster?: ImageAssetId;
alt?: never;
};