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:
Alex 2024-09-12 00:26:45 -06:00
parent e6c6825b64
commit b57016af60
No known key found for this signature in database
GPG Key ID: 148D422DF4E7AF7B

View File

@ -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: '',
},
],
},
}