S3 hosted BrowserRouter-based React app doesn’t work with branch deployments
I have a BrowserRouter
-based React app that is being deployed into an S3 bucket with static hosting. During development, the branches are deployed to the same bucket under /branch/$CI_COMMIT_REF_SLUG
(Gitlab CI).