Order in which WebApp.connectHandlers.use is evaluated


#1

How to make my rules in WebApp.connectHandlers.use () be evaluated before the meteor rules?

I want to prevent certain files in / imports from being delivered depending on the source of the request.


#2

Found it.

In Meteor there is another instance of connect that is not in the documentation that is processed before the code created by the developer.
It’s WebAppInternals.
So just replace
WebApp.connectHandlers.use …
per
WebAppInternals.connectHandlers.use …

otherwise it’s the same