From e73bae6e2f2b510ee32ef7d337d5cbd0d01f8e20 Mon Sep 17 00:00:00 2001 From: Zack Reneau-Wedeen Date: Mon, 4 Sep 2023 12:58:45 -0700 Subject: [PATCH 1/2] Update next.config.js to support github profile pictures --- next.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/next.config.js b/next.config.js index 11854b3..afdc95a 100644 --- a/next.config.js +++ b/next.config.js @@ -4,4 +4,14 @@ module.exports = { experimental: { serverActions: true, }, + images: { + remotePatterns: [ + { + protocol: 'https', + hostname: 'avatars.githubusercontent.com', + port: '', + pathname: '**', + }, + ], + }, }; From 0076f7dac47ae60866acfb9bc20596f5d8ee516f Mon Sep 17 00:00:00 2001 From: Zack Reneau-Wedeen Date: Mon, 4 Sep 2023 12:59:58 -0700 Subject: [PATCH 2/2] Update user-menu.tsx to include width & height --- components/user-menu.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/user-menu.tsx b/components/user-menu.tsx index ff7f9c4..82601f1 100644 --- a/components/user-menu.tsx +++ b/components/user-menu.tsx @@ -34,6 +34,7 @@ export function UserMenu({ user }: UserMenuProps) { className="w-6 h-6 transition-opacity duration-300 rounded-full select-none ring-1 ring-zinc-100/10 hover:opacity-80" src={user?.image ? `${user.image}&s=60` : ''} alt={user.name ?? 'Avatar'} + height={48} width={48} /> ) : (