Skip to content

Commit 989f902

Browse files
mabdullahabidclaude
andcommitted
fix: switch social-image API from edge to nodejs runtime
The edge bundle exceeds the 1MB size limit on Vercel's free plan. Switching to nodejs runtime avoids this constraint. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent cef0c15 commit 989f902

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pages/api/social-image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { mapImageUrl } from '@/lib/map-image-url'
1717
import { notion } from '@/lib/notion-api'
1818
import { type NotionPageInfo, type PageError } from '@/lib/types'
1919

20-
export const runtime = 'edge'
20+
export const runtime = 'nodejs'
2121

2222
export default async function OGImage(
2323
req: NextApiRequest,

0 commit comments

Comments
 (0)