diff --git a/apps/docs/components/ui/action-media.tsx b/apps/docs/components/ui/action-media.tsx index 1c018757d..1f187fb90 100644 --- a/apps/docs/components/ui/action-media.tsx +++ b/apps/docs/components/ui/action-media.tsx @@ -12,23 +12,10 @@ 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 = src.startsWith('/') ? src : `/${src}` - return ( {alt} @@ -36,7 +23,7 @@ export function ActionImage({ src, alt }: ActionImageProps) { } export function ActionVideo({ src, alt }: ActionVideoProps) { - const resolvedSrc = getAssetUrl(normalizeBlobPath(src)) + const resolvedSrc = getAssetUrl(src) return (