I have a react spa pwa created with CRA.
Because its client side routing , I added a redirect * to / in netify.toml.
But sometimes if user accidently or on purpose or due to some other reasons deletes some js precache entries from browser. The js files being returned from server is index.html (because of above redirect).
I wont to redirect non-existiing js files to a dummy js file , so that spa don’t crash