chore: replace default avatar image

This commit is contained in:
oiov
2025-08-12 16:26:12 +08:00
parent 2d44423e14
commit a43135f088
3 changed files with 6 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ export function UserAvatar({ user, ...props }: UserAvatarProps) {
alt="Picture"
src={
user.image ??
`https://unavatar.io/${user.email}?ttl=1h&fallback=https://wr.do/_static/avatar.png`
`https://api.dicebear.com/9.x/initials/svg?seed=${user.name || user.email}`
}
referrerPolicy="no-referrer"
/>

View File

@@ -45,6 +45,10 @@ const nextConfig = {
protocol: "https",
hostname: "wr.do",
},
{
protocol: "https",
hostname: "api.dicebear.com",
},
],
},
experimental: {

File diff suppressed because one or more lines are too long