From 76ebc9405624265888d16578c56f3b3cff228f30 Mon Sep 17 00:00:00 2001 From: dvelo Date: Sun, 4 May 2025 23:42:20 -0500 Subject: [PATCH] fix: ig no banners? --- apps/www/src/app/api/og/server/[id]/players/route.tsx | 4 ++-- apps/www/src/app/api/og/server/[id]/route.tsx | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/www/src/app/api/og/server/[id]/players/route.tsx b/apps/www/src/app/api/og/server/[id]/players/route.tsx index b3a15d5..32d6ade 100644 --- a/apps/www/src/app/api/og/server/[id]/players/route.tsx +++ b/apps/www/src/app/api/og/server/[id]/players/route.tsx @@ -60,7 +60,7 @@ export async function GET( textAlign: "center", justifyContent: "center", alignItems: "center", - backgroundImage: `url(${new URL("/branding/bg-banner.png", request.url).toString()})`, + backgroundColor: "white", backgroundSize: "cover", backgroundPosition: "center", fontFamily: "Inter", @@ -248,7 +248,7 @@ export async function GET( position: "relative", overflow: "hidden", fontFamily: "Inter", - backgroundImage: `url(${new URL("/branding/bg-banner.png", request.url).toString()})`, + backgroundColor: "white", backgroundSize: "cover", backgroundPosition: "center", }} diff --git a/apps/www/src/app/api/og/server/[id]/route.tsx b/apps/www/src/app/api/og/server/[id]/route.tsx index 154ec10..c40047e 100644 --- a/apps/www/src/app/api/og/server/[id]/route.tsx +++ b/apps/www/src/app/api/og/server/[id]/route.tsx @@ -222,7 +222,7 @@ export async function GET( position: "relative", overflow: "hidden", fontFamily: "Inter", - backgroundImage: `url(${new URL("/branding/bg-banner.png", request.url).toString()})`, + backgroundColor: "white", backgroundSize: "cover", backgroundPosition: "center", }} @@ -448,11 +448,7 @@ export async function GET( justifyContent: "center", alignItems: "center", fontFamily: "Inter", - ...(bannerImageData && { - backgroundImage: `url(data:image/png;base64,${Buffer.from(bannerImageData).toString("base64")})`, - backgroundSize: "cover", - backgroundPosition: "center", - }), + backgroundColor: "white", }} >