We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1acbe01 commit bbd4472Copy full SHA for bbd4472
components/Token/Media.tsx
@@ -111,7 +111,10 @@ const TokenMedia: FC<{
111
fill
112
objectFit={fill ? 'cover' : 'contain'}
113
sizes={sizes}
114
- unoptimized={mediaToDisplay.mimetype === 'image/gif'}
+ unoptimized={
115
+ mediaToDisplay.mimetype === 'image/gif' ||
116
+ mediaToDisplay.mimetype === 'image/svg+xml'
117
+ }
118
/>
119
</Box>
120
)
next.config.js
@@ -11,8 +11,6 @@ const removeImports = require('next-remove-imports')()
11
const nextConfig = {
12
images: {
13
minimumCacheTTL: 3600 * 24 * 365, // 1 year
14
- dangerouslyAllowSVG: true,
15
- contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
16
remotePatterns: [
17
{
18
protocol: 'https',
0 commit comments