Update fallback origin in getSiteOrigin to production domain to prevent localhost in OAuth redirects

This commit is contained in:
root
2026-07-03 03:16:32 +00:00
parent 8120a09a0c
commit ca3f756cf3
3 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -52,5 +52,5 @@ function getOrigin(req?: Request): string {
return url.origin;
} catch {}
}
return process.env.NEXT_PUBLIC_SITE_URL ?? 'http://localhost:3000';
return process.env.NEXT_PUBLIC_SITE_URL ?? 'https://shahikitchen.se';
}