Skip to content

Commit

Permalink
feat(post/thumbnail): use nodejs runtime and decrease image size
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 authored Mar 19, 2024
1 parent 7c8a7d9 commit 1a9e3f5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/blog/post/[slug]/thumbnail/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { posts } from '#content'
import { config } from 'global-config'
import { Date as DateFormatter } from '~/components/date'

export const runtime = 'edge'
export const runtime = 'nodejs'

export async function GET(
request: Request,
Expand Down Expand Up @@ -109,9 +109,13 @@ export async function GET(
</div>
</div>
),
// {
// width: 1200,
// height: 630
// }
{
width: 1200,
height: 630
width: 1000,
height: 525
}
)
}

0 comments on commit 1a9e3f5

Please sign in to comment.