Skip to content

Commit 0acd860

Browse files
authored
fix(blog): use unoptimized tag for image assets (#2374)
1 parent 431f206 commit 0acd860

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

apps/sim/app/(landing)/studio/[slug]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default async function Page({ params }: { params: Promise<{ slug: string
6464
sizes='(max-width: 768px) 100vw, 450px'
6565
priority
6666
itemProp='image'
67+
unoptimized
6768
/>
6869
</div>
6970
</div>
@@ -144,6 +145,7 @@ export default async function Page({ params }: { params: Promise<{ slug: string
144145
className='h-[160px] w-full object-cover'
145146
sizes='(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw'
146147
loading='lazy'
148+
unoptimized
147149
/>
148150
<div className='p-3'>
149151
<div className='mb-1 text-gray-600 text-xs'>

apps/sim/app/(landing)/studio/authors/[id]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export default async function AuthorPage({ params }: { params: Promise<{ id: str
3838
width={40}
3939
height={40}
4040
className='rounded-full'
41+
unoptimized
4142
/>
4243
) : null}
4344
<h1 className='font-medium text-[32px] leading-tight'>{author.name}</h1>
@@ -52,6 +53,7 @@ export default async function AuthorPage({ params }: { params: Promise<{ id: str
5253
width={600}
5354
height={315}
5455
className='h-[160px] w-full object-cover transition-transform group-hover:scale-[1.02]'
56+
unoptimized
5557
/>
5658
<div className='p-3'>
5759
<div className='mb-1 text-gray-600 text-xs'>

apps/sim/app/(landing)/studio/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export default async function StudioIndex({
7676
className='h-48 w-full object-cover'
7777
sizes='(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw'
7878
loading='lazy'
79+
unoptimized
7980
/>
8081
<div className='flex flex-1 flex-col p-4'>
8182
<div className='mb-2 text-gray-600 text-xs'>

apps/sim/lib/blog/mdx.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const mdxComponents: MDXRemoteProps['components'] = {
1313
className={clsx('h-auto w-full rounded-lg', props.className)}
1414
sizes='(max-width: 768px) 100vw, 800px'
1515
loading='lazy'
16+
unoptimized
1617
/>
1718
),
1819
h2: (props: any) => (

0 commit comments

Comments
 (0)