Toasts, Redirects & 404s in Next.js
Handling 404 errors is crucial, but most sites default to displaying a 404 page. I argue these are bad for UX. Here's how to instead lead them back to the site with a redirect, and show a helpful message in Next.js.
nextjsuxtutorial25 November 2025