From 0ebfa3a94b4c01a85662c47d43580b3dcad30880 Mon Sep 17 00:00:00 2001 From: Felipe Domingues Date: Sun, 31 May 2026 11:54:21 -0300 Subject: [PATCH] fix: default oauth callback redirect to production --- supabase/functions/oauth-callback/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supabase/functions/oauth-callback/index.ts b/supabase/functions/oauth-callback/index.ts index 352150c..03faef5 100644 --- a/supabase/functions/oauth-callback/index.ts +++ b/supabase/functions/oauth-callback/index.ts @@ -15,7 +15,7 @@ const RAILWAY_API_TOKEN = Deno.env.get("RAILWAY_API_TOKEN") ?? ""; const HERMES_API_SERVER_KEY = Deno.env.get("HERMES_API_SERVER_KEY") ?? ""; function siteUrl(): string { - return Deno.env.get("SITE_URL") ?? "https://798b89e5-0dc6-412a-81be-a4b6dfea7b6c.lovable.app"; + return (Deno.env.get("SITE_URL") ?? "https://mika.domco.ai").replace(/\/$/, ""); } function redirect(path: string): Response {