79548646

Date: 2025-04-01 12:39:37
Score: 2
Natty:
Report link

Thanks @Patryk, your comment helped me to think about one more step.

I am using Firestore as a database. During the firebase init hosting you need to change default settings.

ng build --configuration development
...
firebase init hosting
...
Configure as a single-page app (rewrite all urls to /index.html)?

Simplest way of solving the isse was to answer Yes to the above question during init.

Once I've answered "Y" firebase.json got updated with:

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

and it fixed the issue.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Patryk
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: pawurb