Lifecycles only on api call

I found workaround.

Strapi admin panel uses endpoints like this:
image

and default endpoints starts with this:
image

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

and then skip lifecycle when this is true
image

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