diff --git a/src/app/api/og/dashboard/route.tsx b/src/app/api/og/dashboard/route.tsx index 9705107..c1537cb 100644 --- a/src/app/api/og/dashboard/route.tsx +++ b/src/app/api/og/dashboard/route.tsx @@ -18,6 +18,11 @@ export async function GET(req: NextRequest) { const target = searchParams.get('target') || 'JEE'; const plan = searchParams.get('plan') || 'Free'; + // Build absolute URL for the logo + const protocol = req.headers.get('x-forwarded-proto') || 'http'; + const host = req.headers.get('host') || 'localhost:3000'; + const logoUrl = `${protocol}://${host}/PragatiVeer_Logo/PNG_Logos/Rectangular_dark_background.png`; + return new ImageResponse( (