Component-build compatible express middleware