Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

lw7: fetch og from function again

Francesco Sansalvadore081ddeae4de6
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 {