feat: add instagram image proxy to bypass client DNS blocks

This commit is contained in:
mstfyldz
2026-07-17 18:34:48 +03:00
parent 287dbcd96e
commit cdc72a4109
3 changed files with 36 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ export default function InstagramFeed({ dict, posts = [] }: { dict: any, posts?:
<div className="relative aspect-[4/5] w-full overflow-hidden bg-sand-dark/10">
<img
src={post.imageUrl || ''}
src={post.imageUrl ? `/api/instagram-proxy?url=${encodeURIComponent(post.imageUrl)}` : ''}
alt={post.caption ? post.caption.substring(0, 50) : 'Instagram Post'}
className="w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"
/>