Use api route as avatar

This commit is contained in:
Luke Vella 2024-09-10 20:58:36 +01:00
parent 03e695a7a5
commit 675c845531
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C

View file

@ -25,7 +25,7 @@ export function OptimizedAvatarImage({
<AvatarImage src={src} alt={name} />
) : isAvatarsEnabled ? (
<Image
src={`https://d39ixtfgglw55o.cloudfront.net/${src}`}
src={`/api/storage/${src}`}
width={128}
height={128}
alt={name}