Skip to content

Commit

Permalink
Fix 404 error after logging in
Browse files Browse the repository at this point in the history
  • Loading branch information
davidar committed Feb 2, 2025
1 parent 92f6982 commit a3bf8a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/login/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export async function verify(formData: FormData) {
throw error;
}

revalidatePath('/', 'layout');
redirect('/');
revalidatePath('/list/1', 'layout');
redirect('/list/1');
}

export async function logout() {
Expand All @@ -56,6 +56,6 @@ export async function logout() {
throw error;
}

revalidatePath('/', 'layout');
redirect('/');
revalidatePath('/list/1', 'layout');
redirect('/list/1');
}

0 comments on commit a3bf8a2

Please sign in to comment.