mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 04:15:04 +03:00
lw7: fetch og from function again
This commit is contained in:
1 parent
6138a9aab2
commit
081ddeae4d
1 file changed
+6
-3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user