Next.js middleware + Axios

is it possible to set a middleware.ts in next.js to use axios interceptors for certain pages on my app? The code in the snippet below explains better what I want to implement in my middleware.ts for some of my pages.
No description
1 Reply
Matvey
Matvey4mo ago
no, you can't use middleware from axios. But you can still modify request and response headers without axios
Want results from more Discord servers?
Add your server