fix: default oauth callback redirect to production (#15)

This commit is contained in:
Felipe Domingues 2026-05-31 11:56:30 -03:00 committed by GitHub
parent 79f8da8bd2
commit c97da5f22a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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") ?? ""; const HERMES_API_SERVER_KEY = Deno.env.get("HERMES_API_SERVER_KEY") ?? "";
function siteUrl(): string { 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 { function redirect(path: string): Response {