HOTFIX: redirect post-login to /home-page (where auth works) instead of /contributor (race condition)
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user