diff --git a/apps/docs/components/ui/action-media.tsx b/apps/docs/components/ui/action-media.tsx index 13c906368..1c018757d 100644 --- a/apps/docs/components/ui/action-media.tsx +++ b/apps/docs/components/ui/action-media.tsx @@ -12,8 +12,19 @@ interface ActionVideoProps { alt: string } +/** + * Normalize path for blob storage + * - Strips leading slash + * - Strips 'static/' prefix + */ +function normalizeBlobPath(src: string): string { + let path = src.startsWith('/') ? src.slice(1) : src + path = path.replace(/^static\//, '') + return path +} + export function ActionImage({ src, alt }: ActionImageProps) { - const resolvedSrc = getAssetUrl(src.startsWith('/') ? src.slice(1) : src) + const resolvedSrc = src.startsWith('/') ? src : `/${src}` return (