Skip to content

Commit e65e63c

Browse files
committed
✨ vercel 이미지 최적화를 다시 켰어요
1 parent affe347 commit e65e63c

File tree

8 files changed

+14
-5
lines changed

8 files changed

+14
-5
lines changed

next.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const nextConfig: NextConfig = {
2828
hostname: 'i.ytimg.com',
2929
},
3030
],
31-
unoptimized: true, // 사용량 한계로 임시로 해둬요.
3231
},
3332
}
3433

src/app/archives/[channelId]/components/SlackThreadInformation.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const SlackThreadInformation = ({
3030
height={24}
3131
key={avatar}
3232
src={avatar}
33+
unoptimized
3334
width={24}
3435
/>
3536
))}

src/components/GNB/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const GNB = () => {
1111
<header className="flex h-[64px] w-full shrink-0 items-center justify-between px-5 md:justify-start">
1212
<Link className="mr-[50px] flex items-center gap-3 select-none" href="/">
1313
<div className="w-[32px]">
14-
<AutoHeightImage alt="Logo" src="/logo.svg" unoptimized />
14+
<AutoHeightImage alt="Logo" src="/logo.svg" />
1515
</div>
1616
<span className={`text-xl ${DoHyeon.className}`}>멘션봇</span>
1717
</Link>

src/components/Slack/SlackMessageItem/components/ReactionTooltipContent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const ReactionTooltipContent = ({
4242
height={multipleReactions ? 32 : 64}
4343
key={reaction.name}
4444
src={reaction.url ?? ''}
45+
unoptimized
4546
width={multipleReactions ? 32 : 64}
4647
/>
4748
))}

src/components/Slack/SlackMessageItem/components/SlackMessageImage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export const SlackMessageImage = ({ src, width, height }: SlackMessageImageProps
2828
<AutoHeightImage
2929
alt="이미지"
3030
className={fadeStyle}
31-
loading="eager"
3231
onClick={onClick}
3332
onError={onError}
3433
onLoad={onLoad}

src/components/Slack/SlackMessageItem/components/SlackMessageReactionList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const SlackMessageReactionList = ({ reactions }: SlackMessageReactionList
6363
height={16}
6464
key={reaction.name}
6565
src={reaction.url}
66+
unoptimized
6667
width={16}
6768
/>
6869
)

src/components/Slack/SlackMessageItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const SlackMessageItem = ({
7777
{!isGrouped && (
7878
<div className="mr-2 shrink-0">
7979
<div className="overflow-hidden rounded-md">
80-
<Image alt="Avatar" height={36} src={profileImageUrl} width={36} />
80+
<Image alt="Avatar" height={36} src={profileImageUrl} unoptimized width={36} />
8181
</div>
8282
</div>
8383
)}

src/components/SlackMarkdown/components/InlineEmoji.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const TooltipContent = ({ name, url }: { name: string; url: string }) => {
3636
className="mb-2 rounded-md bg-white object-contain p-1"
3737
height={64}
3838
src={url}
39+
unoptimized
3940
width={64}
4041
/>
4142
<div className="text-center text-[13px] leading-[18px] font-bold text-white">:{name}:</div>
@@ -50,7 +51,14 @@ export const InlineEmoji = ({ name, url, size }: InlineEmojiProps) => {
5051
return (
5152
<HoverTooltip content={<TooltipContent name={name} url={url} />}>
5253
<span className={container()}>
53-
<Image alt={name} className={image()} height={sizeLiteral} src={url} width={sizeLiteral} />
54+
<Image
55+
alt={name}
56+
className={image()}
57+
height={sizeLiteral}
58+
src={url}
59+
unoptimized
60+
width={sizeLiteral}
61+
/>
5462
</span>
5563
</HoverTooltip>
5664
)

0 commit comments

Comments
 (0)