Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Mounted apps "compress" middleware #35

Open
tomatau opened this issue Jan 5, 2016 · 0 comments
Open

Question: Mounted apps "compress" middleware #35

tomatau opened this issue Jan 5, 2016 · 0 comments
Labels

Comments

@tomatau
Copy link

tomatau commented Jan 5, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants