Nextjs Middleware
Middleware allows you to run code before a request is completed.
Based on the incoming request you can choose to modify the response. Examples of which are:
- rewriting
- redirecting
- adding headers
- setting cookies
Middleware allows you to run code before a request is completed.
Based on the incoming request you can choose to modify the response. Examples of which are: