Heroku, much like containers (docker) expect that each application have it’s own service. Heroku suggests using multiple dynos for this and you can use the same git repo.
I would suggest adopting this method as the goal of a “headless cms” is to operate independent of the frontend (headless) and run as it’s own service.