I deployed a react app to cloud foundry by using the static buildpack. The goal is making the app accessible under domain.com/path. So I configured the route accordingly to his blog post: https://www.cloudfoundry.org/context-path-routing/
Also, I set pushstate: enabled
in the static file and added the context path to the static asset URLS; E.g. The URL for the style sheet is domain.com/path/static/style.css
.
When I visit domain.com/path I get the index.html file. However the static assets which are linked in the index.html file are not found and I get the index file instead. This is the default behaviour for pushstate routing if the resourceis not found on the server.
Is there anything else I need to configure in order to run the app with pushstate: enabled
in a 'subdirectory'?