Skip to content

Commit bbd4472

Browse files
committed
SVG loading issue fix
1 parent 1acbe01 commit bbd4472

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/Token/Media.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ const TokenMedia: FC<{
111111
fill
112112
objectFit={fill ? 'cover' : 'contain'}
113113
sizes={sizes}
114-
unoptimized={mediaToDisplay.mimetype === 'image/gif'}
114+
unoptimized={
115+
mediaToDisplay.mimetype === 'image/gif' ||
116+
mediaToDisplay.mimetype === 'image/svg+xml'
117+
}
115118
/>
116119
</Box>
117120
)

next.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ const removeImports = require('next-remove-imports')()
1111
const nextConfig = {
1212
images: {
1313
minimumCacheTTL: 3600 * 24 * 365, // 1 year
14-
dangerouslyAllowSVG: true,
15-
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
1614
remotePatterns: [
1715
{
1816
protocol: 'https',

0 commit comments

Comments
 (0)