I know people have asked about this a lot on the forums. I’ve had it working on a bunch of previous sites but can no longer get redirects to work properly for an SPA.
netlify.toml file I have:
[build] base = "client" publish = "build" command = "yarn build" # The following redirect is intended for use with most SPAs that handle routing internally. [[redirects]] from = "/*" to = "/index.html" status = 200
The project has a
client folder at the root of the project. Whether I place this file at the root of the project or in the client doesn’t help. It actually breaks the site completely when placed in the client folder with nothing loading. It’s a simple Create React App.
Also tried using redirects file but no luck either.