fix(images): restore unoptimized true for direct upload proxy serving and fix React 418 hydration mismatch
Deploy Canina / deploy (push) Successful in 2m5s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 9s

This commit is contained in:
parsa aghaei committed 2026-09-02 15:36:03 +03:30
1 parent e081441c22
commit 1ca06d5740
2 files changed
+10 -7

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",