From 392ada664d6bc42d44950d026faab1eea4b463b5 Mon Sep 17 00:00:00 2001 From: Mustafa Yildiz Date: Sat, 18 Jul 2026 14:53:27 +0300 Subject: [PATCH] fix: resolve 404 for DynamicLogo by using openinaryLoader and fixing path prefix --- components/DynamicLogo.tsx | 9 +++++++-- lib/openinary-loader.ts | 6 ++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/components/DynamicLogo.tsx b/components/DynamicLogo.tsx index 73a1f58..d66c2ff 100644 --- a/components/DynamicLogo.tsx +++ b/components/DynamicLogo.tsx @@ -1,5 +1,7 @@ "use client"; +import openinaryLoader from '../lib/openinary-loader'; + interface DynamicLogoProps { src: string; color?: string; @@ -17,13 +19,16 @@ export default function DynamicLogo({ size = "contain", className = "" }: DynamicLogoProps) { + + const imageUrl = src.startsWith('/') ? openinaryLoader({ src, width: 800 }) : src; + return (