We should have a middleware between fx and core/http server. It should only dispatch depending on the build type.