Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔧 Use cloudfront distribution

Luke Vella47049eeefaeb
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 0d86bd6b2..53020b395 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -23,7 +23,7 @@ const nextConfig = {
pathname: "/api/storage/**",
},
{
- hostname: "rallly-public.s3.amazonaws.com",
+ hostname: "d39ixtfgglw55o.cloudfront.net",
},
],
},
diff --git a/apps/web/src/components/optimized-avatar-image.tsx b/apps/web/src/components/optimized-avatar-image.tsx
index dfe657fce..4541ac99c 100644
--- a/apps/web/src/components/optimized-avatar-image.tsx
+++ b/apps/web/src/components/optimized-avatar-image.tsx
@@ -25,7 +25,7 @@ export function OptimizedAvatarImage({
<AvatarImage src={src} alt={name} />
) : isAvatarsEnabled ? (
<Image
- src={`/api/storage/${src}`}
+ src={`https://d39ixtfgglw55o.cloudfront.net/${src}`}
width={128}
height={128}
alt={name}