I found workaround.
Strapi admin panel uses endpoints like this:
![]()
and default endpoints starts with this:

so you can write a middleware which check which route was called and assign this to strapi config:

and then skip lifecycle when this is true

Its not perfect of course but it works (at least for now)