mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-07 05:01:49 +02:00
🔧 Use cloudfront distribution
This commit is contained in:
parent
4bd35c2c8b
commit
47049eeefa
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ const nextConfig = {
|
||||||
pathname: "/api/storage/**",
|
pathname: "/api/storage/**",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hostname: "rallly-public.s3.amazonaws.com",
|
hostname: "d39ixtfgglw55o.cloudfront.net",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -25,7 +25,7 @@ export function OptimizedAvatarImage({
|
||||||
<AvatarImage src={src} alt={name} />
|
<AvatarImage src={src} alt={name} />
|
||||||
) : isAvatarsEnabled ? (
|
) : isAvatarsEnabled ? (
|
||||||
<Image
|
<Image
|
||||||
src={`/api/storage/${src}`}
|
src={`https://d39ixtfgglw55o.cloudfront.net/${src}`}
|
||||||
width={128}
|
width={128}
|
||||||
height={128}
|
height={128}
|
||||||
alt={name}
|
alt={name}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue