From b73005a93b916fdecb24fd4d960d7db603d81997 Mon Sep 17 00:00:00 2001 From: delgado3d <27228526+delgado3d@users.noreply.github.com> Date: Tue, 28 Mar 2023 18:58:10 +0530 Subject: [PATCH] chore: switch back to .co for edge functions --- apps/www/components/LaunchWeek/Ticket/TicketActions.tsx | 2 +- apps/www/components/LaunchWeek/Ticket/TicketForm.tsx | 2 +- apps/www/pages/launch-week/tickets/[username].tsx | 2 +- apps/www/pages/launch-week/tickets/index.tsx | 2 +- apps/www/supabase/functions/lw7-ticket-og/handler.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx b/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx index 4ccdda9a235..62480933f8a 100644 --- a/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx +++ b/apps/www/components/LaunchWeek/Ticket/TicketActions.tsx @@ -31,7 +31,7 @@ export default function TicketActions({ 'twitter' )}&via=supabase&text=${text}` const linkedInUrl = `https://www.linkedin.com/sharing/share-offsite/?url=${permalink('linkedin')}` - const downloadUrl = `https://obuldanrptloktxcffvn.functions.supabase.in/lw7-ticket-og?username=${encodeURIComponent( + const downloadUrl = `https://obuldanrptloktxcffvn.functions.supabase.co/lw7-ticket-og?username=${encodeURIComponent( username )}` const params = useParams() diff --git a/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx b/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx index cba46e3515a..a1676470dcf 100644 --- a/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx +++ b/apps/www/components/LaunchWeek/Ticket/TicketForm.tsx @@ -59,7 +59,7 @@ export default function TicketForm({ defaultUsername = '', setTicketGenerationSt fetch(`/launch-week/tickets/${username}`).catch((_) => {}) // Prefetch ticket og image. fetch( - `https://obuldanrptloktxcffvn.functions.supabase.in/lw7-ticket-og?username=${encodeURIComponent( + `https://obuldanrptloktxcffvn.functions.supabase.co/lw7-ticket-og?username=${encodeURIComponent( username ?? '' )}` ).catch((_) => {}) diff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsx index e03e3e969bb..ec0d22678a1 100644 --- a/apps/www/pages/launch-week/tickets/[username].tsx +++ b/apps/www/pages/launch-week/tickets/[username].tsx @@ -126,7 +126,7 @@ 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.functions.supabase.in/lw7-ticket-og?username=${encodeURIComponent( + ogImageUrl = `https://obuldanrptloktxcffvn.functions.supabase.co/lw7-ticket-og?username=${encodeURIComponent( username ?? '' )}${golden ? '&golden=true' : ''}` } diff --git a/apps/www/pages/launch-week/tickets/index.tsx b/apps/www/pages/launch-week/tickets/index.tsx index 8fd30e324b0..7a56160b1bc 100644 --- a/apps/www/pages/launch-week/tickets/index.tsx +++ b/apps/www/pages/launch-week/tickets/index.tsx @@ -28,7 +28,7 @@ const supabaseAdmin = createClient( const generateOgs = async (users: UserData[]) => { users?.map(async (user) => { - const ogImageUrl = `https://obuldanrptloktxcffvn.functions.supabase.in/lw7-ticket-og?username=${encodeURIComponent( + const ogImageUrl = `https://obuldanrptloktxcffvn.functions.supabase.co/lw7-ticket-og?username=${encodeURIComponent( user.username ?? '' )}${!!user.golden ? '&golden=true' : ''}` return await fetch(ogImageUrl) diff --git a/apps/www/supabase/functions/lw7-ticket-og/handler.tsx b/apps/www/supabase/functions/lw7-ticket-og/handler.tsx index 0991d3333ac..e9a09e65316 100644 --- a/apps/www/supabase/functions/lw7-ticket-og/handler.tsx +++ b/apps/www/supabase/functions/lw7-ticket-og/handler.tsx @@ -258,7 +258,7 @@ export async function handler(req: Request) { ) if (storageError) throw new Error(`storageError: ${storageError.message}`) // Generate image for gallery - fetch('https://obuldanrptloktxcffvn.functions.supabase.in/lw7-ticket-gallery', { + fetch('https://obuldanrptloktxcffvn.functions.supabase.co/lw7-ticket-gallery', { method: 'POST', headers: { 'Content-Type': 'application/json',