From 081ddeae4de623fdc0821cf8f0564e58fe39628b Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Tue, 28 Mar 2023 16:16:43 +0200 Subject: [PATCH] lw7: fetch og from function again --- apps/www/pages/launch-week/tickets/[username].tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsx index d8bd2b3f41d..0337142c404 100644 --- a/apps/www/pages/launch-week/tickets/[username].tsx +++ b/apps/www/pages/launch-week/tickets/[username].tsx @@ -130,9 +130,12 @@ export const getStaticProps: GetStaticProps = async ({ params }) => { golden = user?.golden ?? false bg_image_id = user?.bg_image_id ?? 1 referrals = user?.referrals ?? 0 - ogImageUrl = `https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/public/images/lw7/tickets/${ - golden ? 'golden' : 'regular' - }/v3/${username ?? ''}.png` + ogImageUrl = `https://obuldanrptloktxcffvn.functions.supabase.co/lw7-ticket-og?username=${encodeURIComponent( + username ?? '' + )}${golden ? '&golden=true' : ''}` + // ogImageUrl = `https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/public/images/lw7/tickets/${ + // golden ? 'golden' : 'regular' + // }/v3/${username ?? ''}.png` } return {