There are plenty of cases where you're authoring a module and installing a server middleware that attaches a context so that userland can access it as well when they have their own custom middleware - but this isnt the case. The custom middlewares you put inside
server/middlewares
server/middlewares
will run first before the middleware added by modules.
Before anyone answers "just add a number to your custom middleware so it runs last", no it does not work. It only works on the middlewares you put inside
server/middlewares
server/middlewares
but not middlewares installed by modules.
Is this something that will be tackled in the future? If not, is there a way to make sure middlewares added by modules (