Update fallback origin in getSiteOrigin to production domain to prevent localhost in OAuth redirects
This commit is contained in:
@@ -39,7 +39,7 @@ 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';
|
||||
}
|
||||
|
||||
export async function GET(request: Request) {
|
||||
|
||||
Reference in New Issue
Block a user