- Add light mode support
- Skip redirectionio for server actions and components
- It is now recommended to avoid using this middleware on
/api
,/_next
,/_static
or/_vercel
paths to avoid buggy behavior from vercel - Allow to configure a specific matcher to avoid executing this middleware on same paths, by default this middleware
will not be executed on
/api
,/_next
,/_static
or/_vercel
paths
- Avoid sending empty header name to libredirectionio
- Update libredirectionio dependency
- Add prettier to format code
- Add cache no store for middleware requests
- Skip middleware for "Vercel Edge Functions" user agent
- Set next.js as an optional peer dependency
- Fix infinite loop on some cases
- Avoid following redirections on middleware requests
- Fix next and previous middleware skipped if there is no token
- Fix creating a new request when using a next js request
- Add support for next.js
- Rebuild js files to fix an issue with the package
- Initial release