From 961ec9bfcd0db9bd56108195e7a3207901969b1d Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Sun, 30 Mar 2025 18:04:48 +0100 Subject: [PATCH] fix: use next/image for profile picture --- next.config.ts | 11 ++++++++++- src/app/components/profile-overview.tsx | 9 ++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/next.config.ts b/next.config.ts index e9ffa30..791beae 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,16 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ + images: { + remotePatterns: [ + { + hostname: "avatars.githubusercontent.com", + }, + { + hostname: "cdn.discordapp.com", + }, + ], + }, }; export default nextConfig; diff --git a/src/app/components/profile-overview.tsx b/src/app/components/profile-overview.tsx index b881d4c..97b42a2 100644 --- a/src/app/components/profile-overview.tsx +++ b/src/app/components/profile-overview.tsx @@ -1,3 +1,4 @@ +import Image from "next/image"; import { auth } from "@/lib/auth"; export default async function ProfileOverview() { @@ -6,7 +7,13 @@ export default async function ProfileOverview() { return (