Reloading routes are returning 404 error in Blazor Azure static web app

Add a staticwebapp.config.json file to wwwroot.

{
  "navigationFallback": {
    "rewrite": "/index.html",
    "exclude": ["/images/*.{png,jpg,gif}", "/css/*"]
  }
}

Other Links:

https://docs.microsoft.com/en-us/azure/static-web-apps/configuration#fallback-routes