From 1a9e3f5aae4fa78720e5a328cca84e5ef1cd8844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateus=20Felipe=20Gon=C3=A7alves?= Date: Tue, 19 Mar 2024 19:32:44 +0000 Subject: [PATCH] feat(post/thumbnail): use nodejs runtime and decrease image size --- src/app/blog/post/[slug]/thumbnail/route.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/blog/post/[slug]/thumbnail/route.tsx b/src/app/blog/post/[slug]/thumbnail/route.tsx index d0bd7d61..7d59562f 100644 --- a/src/app/blog/post/[slug]/thumbnail/route.tsx +++ b/src/app/blog/post/[slug]/thumbnail/route.tsx @@ -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, @@ -109,9 +109,13 @@ export async function GET( ), + // { + // width: 1200, + // height: 630 + // } { - width: 1200, - height: 630 + width: 1000, + height: 525 } ) }