Bill Covert
Sep 5, 2018 · 1 min read

We ran into a situation like this. Since the client was only static files we just had the api server serve the built files. As part of the Heroku build process, we just built the client, then moved the built files to a folder the api service could serve. We served the client out of the index and the api from /api/.

That won’t work though if you really need two different servers. Like two api servers in different languages. But it works nicely for the situation you were describing.

    Bill Covert

    Written by

    Code stuff