Categories
deployment frontend typescript

Deploy a Vite React SPA app to CloudFront with working BrowserRouter

When I deployed my websites, then I always had problems with refreshing/sub routes like /finding/latest. Other developers posted solutions like sketchy redirect scripts, but they had a big problem.