VideosMy ProjectsProgramming BlogGallery
  1. Home
  2. Blog
  3. Fix the routing while using Firebase hosting
Programming Blog

Atom/RSS Feed

angular/firebase

Fix the routing while using Firebase hosting

angular/firebase

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

Example code

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