From bdccc95403a420eeffa6046bdcff41ba1aa5f30b Mon Sep 17 00:00:00 2001 From: Andres Date: Fri, 25 Apr 2025 21:00:35 +0200 Subject: [PATCH] fix avatars --- src/components/ui/avatar.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/ui/avatar.tsx b/src/components/ui/avatar.tsx index e73a8aa..e8cab90 100644 --- a/src/components/ui/avatar.tsx +++ b/src/components/ui/avatar.tsx @@ -28,12 +28,15 @@ function AvatarImage({ ...props }: React.ComponentProps) { const isDev = process.env.NODE_ENV === 'development' - + let finalSrc = src + if (src?.startsWith('/') && !isDev) { + finalSrc = `${CDN_URL}${src}` + } return ( )