import MiddlewareFileName from "../../_sections/api-routes/middleware-file-name.mdx" export const metadata = { title: `Middleware Registration Troubleshooting`, } # {metadata.title} This troubleshooting guide will help you debug why your middleware is not being registered correctly. ## Incorrect Middleware File Name