Article
home/blog/Loading

Fix the routing while using Firebase hosting

To fix the routing you need to include the rewrites section in firebase.json

Example code

"hosting": {
    "public": "dist",
    "rewrites": [ {
      "source": "**",
      "destination": "/index.html"
    } ]
  }