Completely containerized multiple SPAs created by CRA with client-side routing accessible through an nginx gateway under different paths as explained in detail here.
cd vm
docker-compose up
The foo
SPA will be available at http://localhost:8080/foo
The bar
SPA will be available at http://localhost:8080/bar
The docker-compose.yml
is just for convenience and demonstration purposes, of course the containers should be build with the correct PUBLIC_URL
argument and pushed to a registry by your CI.