From 56bc809c6fa10b9ea0c8709493f3b85991e77b75 Mon Sep 17 00:00:00 2001 From: Waleed Date: Mon, 26 Jan 2026 13:07:11 -0800 Subject: [PATCH] fix(docs): separate local and blob asset resolution for quick-reference (#3007) * fix(docs): separate local and blob asset resolution for quick-reference ActionImage now uses local paths directly for PNGs while ActionVideo uses blob storage with proper path normalization (strips static/ prefix). Co-Authored-By: Claude Opus 4.5 * refactor(docs): simplify asset resolution by using correct paths directly Remove path normalization logic from action-media component. Instead, use the appropriate paths in MDX: - PNGs: /static/quick-reference/... (local) - MP4s: quick-reference/... (blob via getAssetUrl) --------- Co-authored-by: Claude Opus 4.5 --- apps/docs/components/ui/action-media.tsx | 6 +-- .../content/docs/en/quick-reference/index.mdx | 38 +++++++++---------- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/apps/docs/components/ui/action-media.tsx b/apps/docs/components/ui/action-media.tsx index 13c906368..1f187fb90 100644 --- a/apps/docs/components/ui/action-media.tsx +++ b/apps/docs/components/ui/action-media.tsx @@ -13,11 +13,9 @@ interface ActionVideoProps { } export function ActionImage({ src, alt }: ActionImageProps) { - const resolvedSrc = getAssetUrl(src.startsWith('/') ? src.slice(1) : src) - return ( {alt} @@ -25,7 +23,7 @@ export function ActionImage({ src, alt }: ActionImageProps) { } export function ActionVideo({ src, alt }: ActionVideoProps) { - const resolvedSrc = getAssetUrl(src.startsWith('/') ? src.slice(1) : src) + const resolvedSrc = getAssetUrl(src) return (