docs: add troubleshooting for middlewares (#13764)
This commit is contained in:
@@ -167,6 +167,10 @@ npm run dev
|
||||
Received a request!
|
||||
```
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
If the middleware didn't run, make sure you've correctly created the middleware at `src/api/middlewares.ts` (with correct spelling). This is a common mistake that can lead to the middleware not being applied, resulting in unexpected behavior.
|
||||
|
||||
---
|
||||
|
||||
## When to Use Middlewares
|
||||
|
||||
Reference in New Issue
Block a user