chore: Update next.config.js to allow remote SVG images
This commit updates the next.config.js file to allow the usage of remote SVG images. It adds a new configuration for the `images` property, specifically allowing SVG images from the `img.shields.io` domain over HTTPS.
This commit is contained in:
parent
e6c6825b64
commit
b57016af60
@ -4,5 +4,15 @@ module.exports = {
|
||||
i18n,
|
||||
reactStrictMode: true,
|
||||
// Required by Next i18n with API routes, otherwise API routes 404 when fetching without trailing slash
|
||||
trailingSlash: true
|
||||
trailingSlash: true,
|
||||
images: {
|
||||
dangerouslyAllowSVG: true,
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'img.shields.io',
|
||||
port: '',
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user