How Next.js 13 middleware is used as error handling? - Theo's Typesafe Cult