fix: resolve 404 for DynamicLogo by using openinaryLoader and fixing path prefix

This commit is contained in:
Mustafa Yildiz
2026-07-18 14:53:27 +03:00
parent ab184529eb
commit 392ada664d
2 changed files with 11 additions and 4 deletions
+4 -2
View File
@@ -30,8 +30,10 @@ export default function openinaryLoader({ src, width, quality }: { src: string,
return url.toString();
}
// Clean up any leading slash
if (path.startsWith('/')) {
// Clean up any leading slash and the /t/ prefix if present
if (path.startsWith('/t/')) {
path = path.substring(3);
} else if (path.startsWith('/')) {
path = path.substring(1);
}