fix(images): restore direct upload loading to fix 502, fix StatCounter CLS and SmartAdvisor button contrast
This commit is contained in:
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",
|
||||
|
||||
Reference in new issue
Block a user