SPA redirects: [/* /index.html 200] captures everything (JS, CSS, etc.)

Site name: https://jazzy-quokka-3636e8.netlify.app/

I tried the recommended guide for single page apps and added the /* /index.html 200 rule to my _redirects file. However now, all requests to static files (JS, CSS, etc.) get served the content of index.html with HTML mime type, so in fact the app is broken.

How can I fix this? Thanks!

There are 2 situations where this would cause issues:

  1. Either you force the redirect - which I don’t see being your case
  2. OR the assets exist at a wrong path than what you’re referencing.
1 Like