Use api route as avatar (#1344)

This commit is contained in:
Luke Vella 2024-09-10 21:36:29 +01:00 committed by GitHub
parent 03e695a7a5
commit a07a8f74cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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}