Skip to content

Commit 77b905b

Browse files
committed
fix: replace dynamic OG generation with static default image for SSG compatibility
1 parent d1c2c75 commit 77b905b

File tree

3 files changed

+21
-122
lines changed

3 files changed

+21
-122
lines changed
Lines changed: 19 additions & 0 deletions
Loading

apps/blog/web/src/app/api/og/route.tsx

Lines changed: 0 additions & 113 deletions
This file was deleted.

apps/blog/web/src/app/posts/[...slug]/page.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,10 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
4242
publishedTime: post.date || undefined,
4343
images: [
4444
{
45-
url: `/api/og?title=${encodeURIComponent(post.title)}&date=${encodeURIComponent(
46-
post.date
47-
? new Date(post.date).toLocaleDateString('ko-KR', {
48-
year: 'numeric',
49-
month: 'long',
50-
day: 'numeric',
51-
})
52-
: '',
53-
)}`,
45+
url: '/og-default.svg',
5446
width: 1200,
5547
height: 630,
48+
alt: 'FE Lab Blog - Frontend Experimentation',
5649
},
5750
],
5851
},

0 commit comments

Comments
 (0)