Just run production with the right flags so it'll log? Or put the app into local and try to replicate? The tone of voice is also completely off.
It seems Middleware in Next.js is not what Middleware is in framework X. This whole thread looks like a complete collection of misunderstandings of Next.js.