Our current project requires us to serve several different static react apps via different paths on the same hostname.
- www.company.com (old corporate site)
- www.company.com/new-shiny-react-app
- www.company.com/another-new-shiny-react-app
We deploy the react apps to separate containers in the same Azure Blob Storage account and to keep things simple we use the reuse the same naming structure.
- blobstorage/new-shiny-react-app
- blobstorage/another-new-shiny-react-app
The included VCL snippets take care of serving the default document when the client side routing points to urls that do not exist on the backend.
- I'm no VCL expert and I'm sure there are better ways to do it. This way does work quite nicely though :)