fix(images): restore unoptimized true for direct upload proxy serving and fix React 418 hydration mismatch
This commit is contained in:
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",
|
||||
|
||||
Reference in new issue
Block a user