fix(images): restore direct upload loading to fix 502, fix StatCounter CLS and SmartAdvisor button contrast
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s
Deploy Canina / deploy (push) Has been cancelled

This commit is contained in:
parsa aghaei committed 2026-09-02 15:09:54 +03:30
1 parent 062718fb84
commit 5e6e25390e
3 files changed
+25 -26

No files matched your search

@@ -104,7 +104,12 @@ export default function SafeImage({
unoptimized={
isBlobOrData ||
!isAllowedHost ||
(typeof src === 'string' && src.toLowerCase().endsWith('.svg'))
(typeof src === 'string' && (
src.startsWith('/api/uploads/') ||
src.startsWith('/api/media/') ||
src.startsWith('/uploads/') ||
src.toLowerCase().endsWith('.svg')
))
}
className={cn(
"transition-all duration-500 w-full h-full object-contain",