The build of this project there is here you can resolve this with a web server like that (nginx, apachee, ..).
For add URL ergoapi to front change url in env-config.js to your ergoapi path if you are using Dockerfile, you can set enviroment BACKEND
for ergoapi.