HOTFIX: redirect post-login to /home-page (where auth works) instead of /contributor (race condition)

This commit is contained in:
Ryan Salazar
2026-05-10 13:10:51 +00:00
parent 73ad12a952
commit fc4181cd46

View File

@@ -49,7 +49,7 @@ export default function ClientLoginPage() {
// its NextResponse. Hard reload so the server re-renders with the // its NextResponse. Hard reload so the server re-renders with the
// cookie and the browser supabase client picks it up from // cookie and the browser supabase client picks it up from
// document.cookie on page load. // document.cookie on page load.
window.location.href = '/contributor'; window.location.href = '/home-page';
} catch (err: any) { } catch (err: any) {
setError(err.message || 'An error occurred'); setError(err.message || 'An error occurred');
console.error('Login exception:', err); console.error('Login exception:', err);