I deployed my react-app on netlify successfully with no errors, yet none of the routes work. I only go as far as the landing page. (The login screen is not validated, just click the login button to proceed to the erroneous page)
Now I’ve searched a lot of topics on netlify community and stack overflow, tried many of the solutions, but none work.
My site: https://sales-force.netlify.app/
[build]
command = "CI= npm run build"
publish="build/"
[[redirects]]
from = “/"
to = "/”
status = 200
[[redirects]]
from = “/*”
to = “/index.html”
status = 200
[[redirects]]
from = “/*”
to = “/home”
status = 200
[[redirects]]
from = “/home”
to = “/*”
status = 200
[[redirects]]
from = “/*”
to = “/salesrep”
status = 200
[[redirects]]
from = “/salesrep”
to = “/*”
status = 200
[[redirects]]
from = “/*”
to = “/outlets”
status = 200
[[redirects]]
from = “/outlets”
to = “/*”
status = 200
[[redirects]]
from = “/*”
to = “/analytics”
status = 200
[[redirects]]
from = “/analytics”
to = “/*”
status = 200
[[redirects]]
from = “/*”
to = “/routes”
status = 200
[[redirects]]
from = “/routes”
to = “/*”
status = 200
[[redirects]]
from = “/*”
to = “/settings”
status = 200
[[redirects]]
from = “/settings”
to = “/*”
status = 200
I’ve tried adding a _redirects file in public folder but that didn’t work either. Tried changing from browserRouter to Hashrouter (it worked for another site i did)
Another things is, I get weird errors in the first route of the site. Here’s an image.
Any assistance will be greatly appreciated. Apologies if my question is duplicate.