From b57016af60ff851db4d149b35acaecb7af99fa74 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 12 Sep 2024 00:26:45 -0600 Subject: [PATCH] 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. --- next.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index fa13553..066257b 100644 --- a/next.config.js +++ b/next.config.js @@ -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: '', + }, + ], + }, }