From 3a952e4a597b2369e769271e6483ca9756ddfd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oktay=20=C5=9Eenkan?= Date: Thu, 31 Oct 2024 05:23:34 +0300 Subject: [PATCH] docs(docs): remove regular fonts --- apps/docs/pages/api/og.tsx | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/apps/docs/pages/api/og.tsx b/apps/docs/pages/api/og.tsx index b5c1a79..92ee11c 100644 --- a/apps/docs/pages/api/og.tsx +++ b/apps/docs/pages/api/og.tsx @@ -5,10 +5,6 @@ export const config = { runtime: "edge", }; -const interRegular = fetch( - new URL("../../public/Inter-Regular.ttf", import.meta.url) -).then((res) => res.arrayBuffer()); - const interMedium = fetch( new URL("../../public/Inter-Medium.ttf", import.meta.url) ).then((res) => res.arrayBuffer()); @@ -23,10 +19,7 @@ export default async function handler( req: NextApiRequest, res: NextApiResponse ) { - const [interRegularFont, interBoldFont] = await Promise.all([ - interRegular, - interMedium, - ]); + const [interMediumFont] = await Promise.all([interMedium]); const { searchParams } = new URL(req.url || "", `http://${req.headers.host}`); @@ -47,10 +40,11 @@ export default async function handler( padding: "140px 200px 140px 140px", gap: 160, fontFamily: "Inter", + fontWeight: 500, }} > -

{text}

-

{website}

+

{text}

+

{website}

), { @@ -59,13 +53,7 @@ export default async function handler( fonts: [ { name: "Inter", - data: interRegularFont, - style: "normal", - weight: 400, - }, - { - name: "Inter", - data: interBoldFont, + data: interMediumFont, style: "normal", weight: 500, },