docs: add new troubleshooting guides for Query and middlewares (#12214)

This commit is contained in:
Shahed Nasser
2025-04-17 14:18:07 +03:00
committed by GitHub
parent 191965bbfe
commit 9d27c0c194
10 changed files with 12961 additions and 12817 deletions
@@ -0,0 +1,5 @@
A common mistake when creating middlewares is naming the file `middleware.ts` rather than `middlewares.ts`.
If your middleware isn't registered correctly, make sure you've created the middleware file at `src/api/middlewares.ts`.
Learn more in the [Middleware](!docs!/learn/fundamentals/api-routes/middlewares) documentation.