Skip to content

Commit 0d30676

Browse files
authored
fix(blog): revert back to using next image tags in blog (#2458)
1 parent 36bdccb commit 0d30676

File tree

17 files changed

+5
-10
lines changed

17 files changed

+5
-10
lines changed

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

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

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

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

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ 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
8079
/>
8180
<div className='flex flex-1 flex-col p-4'>
8281
<div className='mb-2 text-gray-600 text-xs'>

apps/sim/content/authors/emir.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"name": "Emir Karabeg",
44
"url": "https://x.com/karabegemir",
55
"xHandle": "karabegemir",
6-
"avatarUrl": "/studio/authors/emir.png"
6+
"avatarUrl": "/studio/authors/emir.jpg"
77
}

apps/sim/content/authors/sid.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"name": "Siddharth",
44
"url": "https://x.com/sidganesan",
55
"xHandle": "sidganesan",
6-
"avatarUrl": "/studio/authors/sid.png"
6+
"avatarUrl": "/studio/authors/sid.jpg"
77
}

apps/sim/content/authors/waleed.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"name": "Waleed Latif",
44
"url": "https://x.com/typingwala",
55
"xHandle": "typingwala",
6-
"avatarUrl": "/studio/authors/waleed.png"
6+
"avatarUrl": "/studio/authors/waleed.jpg"
77
}

apps/sim/content/blog/series-a/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ featured: true
1818
draft: false
1919
---
2020

21-
![Sim team photo](/studio/series-a/team.png)
21+
![Sim team photo](/studio/series-a/team.jpg)
2222

2323
## Why we’re excited
2424

apps/sim/lib/blog/mdx.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ 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
1716
/>
1817
),
1918
h2: (props: any) => (

apps/sim/next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const nextConfig: NextConfig = {
8484
],
8585
outputFileTracingIncludes: {
8686
'/api/tools/stagehand/*': ['./node_modules/ws/**/*'],
87+
'/*': ['./node_modules/sharp/**/*', './node_modules/@img/**/*'],
8788
},
8889
experimental: {
8990
optimizeCss: true,
31.7 KB
Loading

0 commit comments

Comments
 (0)