arrow_back Back to Notebook
angular/firebase
angular/firebase
April 7, 2019

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"
    } ]
  }

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch