mount
mount copied to clipboard
Question: Mounted apps "compress" middleware
I'm currently attempting to mount my main server app within another app. This is in a "universal/isomorphic" project where one requirement is hot reloading for the server code as well as client code -- mounting the main app achieves this nicely.
One problem I'm facing, is that the middleware of the mounted app such as "compress" are not being applied, despite this mounted app is responsible for handling the requests and serving assets. Also I've had to add app.keys to the parent app for the session to work as expected.
Is this a bug, or is my attempted architecture just too strange?
Here's the code: https://github.com/tomatau/breko-hub/blob/master/scripts/dev.js#L44