From c794b120b599b50cf98a690344fc733adda86d83 Mon Sep 17 00:00:00 2001 From: Saif Ali <116622210+saiksaif@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:42:55 +0500 Subject: [PATCH 1/2] Added option for google images --- next.config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/next.config.js b/next.config.js index cec5b71a..0f50de63 100644 --- a/next.config.js +++ b/next.config.js @@ -23,6 +23,17 @@ const nextConfig = { config.resolve.alias.encoding = false return config }, + + images: { + remotePatterns: [ + { + protocol: "https", + hostname: "*.googleusercontent.com", + port: "", + pathname: "**", + }, + ], + }, } module.exports = nextConfig From 9e4efe13d09159969efcc152d2d2e47b2877c590 Mon Sep 17 00:00:00 2001 From: Saif Ali <116622210+saiksaif@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:44:36 +0500 Subject: [PATCH 2/2] Proper comment for fix --- next.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/next.config.js b/next.config.js index 0f50de63..7fb05268 100644 --- a/next.config.js +++ b/next.config.js @@ -24,6 +24,7 @@ const nextConfig = { return config }, + // Solves image error when logging in via Google images: { remotePatterns: [ {