Clerk 404 when signing out from a protected page (Next.js)
Unanswered
Southern rough shrimp posted this in #help-forum
Southern rough shrimpOP
Now, let's say that I have a protected route /dashboard. My issue is that if I am signed in, and if I am on the /dashboard page, and I click Sign Out via Clerk's built in <UserButton />, for a fraction of a second I see a 404 before I am redirected to / .
2 Replies
West African Lion
@Southern rough shrimp Have you looked at custom error pages? I think because of the route not existing the website will throw a 404 error. You can create a custom error.tsx to make a non 404 looking page to add as the buffer instead of seeing the black 404 page