diff --git a/components/pages/home/header.tsx b/components/pages/home/header.tsx index 0fc8b9f..bfb6dba 100644 --- a/components/pages/home/header.tsx +++ b/components/pages/home/header.tsx @@ -1,8 +1,21 @@ -const Header: React.FC = () => { +import Image from "next/image"; + +const Header: React.FC = async () => { + const res = await fetch( + "https://discord.com/api/v10/users/739702692393517076", + { + headers: { + Authorization: `Bot ${process.env.DISCORD_TOKEN}`, + } + } + ); + const data = await res.json(); + const avatarURL = `https://cdn.discordapp.com/avatars/739702692393517076/${data.avatar}.png?size=1024` return ( -
-
-

tuna2134

+
+
+ avatar +

tuna2134

) diff --git a/next.config.ts b/next.config.ts index e9ffa30..760becb 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,14 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ + images: { + remotePatterns: [ + { + protocol: 'https', + hostname: "cdn.discordapp.com", + } + ] + } }; export default nextConfig;